org.jrabbit.base.graphics.types
Interface Viewer

All Known Implementing Classes:
BaseWindowController, Camera, CameraViewChecker, CanvasWindowController, DesktopWindowController, WindowController

public interface Viewer

A Viewer calculates whether or not objects will be seen when they are rendered to the screen. Objects that extends this interface will probably work in tandem with ScreenObjects to determine whether or not something is visible.

Author:
Chris Molini

Method Summary
 boolean views(float x, float y, float radius)
          Determines whether or not the indicated coordinates are visible, given a visibility radius.
 

Method Detail

views

boolean views(float x,
              float y,
              float radius)
Determines whether or not the indicated coordinates are visible, given a visibility radius.

Parameters:
x - The central x coordinate.
y - The central y coordinate.
radius - The radius of the visible object.
Returns:
Whether or not the coordinates are visible.