public interface Viewer extends Shape
Modifier and Type | Method and Description |
---|---|
void |
follow(Localizable localizable)
Follow automatically the specified localizable.
|
double |
getViewpointX(double x)
Get the horizontal viewpoint from the object location.
|
double |
getViewpointY(double y)
Get the vertical viewpoint from the object location.
|
int |
getViewX()
Get horizontal view offset.
|
int |
getViewY()
Get vertical view offset.
|
boolean |
isViewable(Shape shape,
int marginX,
int marginY)
Check if the localizable is inside the view area, and so, can be seen.
|
getX, getY
void follow(Localizable localizable)
localizable
- The localizable to follow.double getViewpointX(double x)
x
- The object horizontal location.double getViewpointY(double y)
y
- The object vertical location.int getViewX()
int getViewY()
boolean isViewable(Shape shape, int marginX, int marginY)
shape
- The shape to check.marginX
- The horizontal margin.marginY
- The vertical margin.true
if viewable, false
else.Copyright © 2016 Byron 3D Games Studio. All rights reserved.