public class PickPointFrustum extends Frustum
Frustum.Corners
Constructor and Description |
---|
PickPointFrustum(Frustum frustum,
java.awt.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(java.awt.Point point)
Returns true if the specified point is inside the 2D screen rectangle enclosed by this frustum
|
java.awt.Rectangle |
getScreenRect()
Returns the screenRect associated with this frustum
|
boolean |
intersects(java.awt.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, toString
public PickPointFrustum(Frustum frustum, java.awt.Rectangle rect)
frustum
- frustum to create the PickPointFrustum fromrect
- screen rectangle to store with this frustumpublic final boolean contains(double x, double y)
x
- the x coordinate to test.y
- the y coordinate to test.java.lang.IllegalArgumentException
- if the point is null.public final boolean contains(java.awt.Point point)
point
- the point to test.java.lang.IllegalArgumentException
- if the point is null.public java.awt.Rectangle getScreenRect()
public final boolean intersects(java.awt.Rectangle rect)
Rectangle
intersects the space enclosed by this view
aligned frustums screen rectangle.rect
- the rectangle to testjava.lang.IllegalArgumentException
- if the extent is null.public PickPointFrustum transformBy(Matrix matrix)
transformBy
in class Frustum
matrix
- the Matrix to transform this Frustum by.java.lang.IllegalArgumentException
- if the matrix is null