public class PickPointFrustum extends Frustum
Frustum.Corners| Constructor and Description |
|---|
PickPointFrustum(Frustum frustum,
Rectangle rect)
Constructs a new PickPointFrustum from another Frustum and screen rectangle
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(double x,
double y)
Returns true if the specified point is inside the 2D screen rectangle enclosed by this frustum
|
boolean |
contains(Point point)
Returns true if the specified point is inside the 2D screen rectangle enclosed by this frustum
|
Rectangle |
getScreenRect()
Returns the screenRect associated with this frustum
|
boolean |
intersects(Rectangle rect)
Returns true if the specified 2D screen
Rectangle intersects the space enclosed by this view
aligned frustums screen rectangle. |
PickPointFrustum |
transformBy(Matrix matrix)
Returns a copy of this PickPointFrustum which is transformed by the specified Matrix.
|
contains, contains, equals, fromPerspective, fromPerspective, fromPerspectiveVecs, fromProjectionMatrix, getAllPlanes, getBottom, getCorners, getFar, getLeft, getNear, getRight, getTop, hashCode, intersects, intersectsSegment, toStringpublic final boolean contains(double x,
double y)
x - the x coordinate to test.y - the y coordinate to test.IllegalArgumentException - if the point is null.public final boolean contains(Point point)
point - the point to test.IllegalArgumentException - if the point is null.public Rectangle getScreenRect()
public final boolean intersects(Rectangle rect)
Rectangle intersects the space enclosed by this view
aligned frustums screen rectangle.rect - the rectangle to testIllegalArgumentException - if the extent is null.public PickPointFrustum transformBy(Matrix matrix)
transformBy in class Frustummatrix - the Matrix to transform this Frustum by.IllegalArgumentException - if the matrix is null