|
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.
| Constructor Summary | |
|---|---|
PickPointFrustum(Frustum frustum,
java.awt.Rectangle rect)
Constructs a new PickPointFrustum from another Frustum and screen rectangle |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class gov.nasa.worldwind.geom.Frustum |
|---|
contains, equals, fromPerspective, fromPerspective, fromPerspectiveVecs, fromProjectionMatrix, getAllPlanes, getBottom, getFar, getLeft, getNear, getRight, getTop, hashCode, intersects, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PickPointFrustum(Frustum frustum,
java.awt.Rectangle rect)
frustum - frustum to create the PickPointFrustum fromrect - screen rectangle to store with this frustum| Method Detail |
|---|
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 test
java.lang.IllegalArgumentException - if the extent is null.public PickPointFrustum transformBy(Matrix matrix)
transformBy in class Frustummatrix - the Matrix to transform this Frustum by.
java.lang.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 | ||||||||