|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.geom.Frustum
gov.nasa.worldwind.geom.PickPointFrustum
public class PickPointFrustum
A viewport aligned Frustum that also stores the 2D screen rectangle that the Frustum contains.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class gov.nasa.worldwind.geom.Frustum |
|---|
Frustum.Corners |
| Field Summary |
|---|
| Fields inherited from class gov.nasa.worldwind.geom.Frustum |
|---|
allPlanes, bottom, far, left, near, right, top |
| Constructor Summary | |
|---|---|
PickPointFrustum(Frustum frustum,
Rectangle rect)
Constructs a new PickPointFrustum from another Frustum and screen rectangle |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class gov.nasa.worldwind.geom.Frustum |
|---|
contains, contains, equals, fromPerspective, fromPerspective, fromPerspectiveVecs, fromProjectionMatrix, getAllPlanes, getBottom, getCorners, getFar, getLeft, getNear, getRight, getTop, hashCode, intersects, intersectsSegment, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PickPointFrustum(Frustum frustum,
Rectangle rect)
frustum - frustum to create the PickPointFrustum fromrect - screen rectangle to store with this frustum| Method Detail |
|---|
public 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 test
IllegalArgumentException - 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
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||