Camera#frustum
| Modifier and Type | Field and Description |
|---|---|
| protected static final Vector3[] | |
| protected static final float[] | |
| public final Vector3[] | planePoints
eight points making up the near and far clipping "rectangles". |
| protected final float[] | |
| public final Plane[] | planes
the six clipping planes, near, far, left, right, top, bottom |
| private static final Vector3 |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: Whether the bounding box is in the frustumThe bounding box bounds)Returns whether the given |
| public boolean | Returns: Whether the bounding box is in the frustumReturns whether the given bounding box is in the frustum. |
| public boolean | Returns: Whether the bounding box is in the frustumReturns whether the given bounding box is in the frustum. |
| public boolean | Returns: Whether the oriented bounding box is in the frustumThe oriented bounding box obb)Returns whether the given |
| public boolean | Returns: Whether the point is in the frustum.The point point)Returns whether the point is in the frustum. |
| public boolean | Returns: Whether the point is in the frustum.The X coordinate of the point x, float The Y coordinate of the point y, float The Z coordinate of the point z)Returns whether the point is in the frustum. |
| public boolean | Returns: Whether the sphere is in the frustumThe center of the sphere center, float The radius of the sphere radius)Returns whether the given sphere is in the frustum. |
| public boolean | Returns: Whether the sphere is in the frustumThe X coordinate of the center of the sphere x, float The Y coordinate of the center of the sphere y, float The Z coordinate of the center of the sphere z, float The radius of the sphere radius)Returns whether the given sphere is in the frustum. |
| public boolean | Returns: Whether the sphere is in the frustumThe center of the sphere center, float The radius of the sphere radius)Returns whether the given sphere is in the frustum not checking whether it is behind the near and far clipping plane. |
| public boolean | Returns: Whether the sphere is in the frustumThe X coordinate of the center of the sphere x, float The Y coordinate of the center of the sphere y, float The Z coordinate of the center of the sphere z, float The radius of the sphere radius)Returns whether the given sphere is in the frustum not checking whether it is behind the near and far clipping plane. |
| public void | update(Matrix4
the combined projection and view matrices. inverseProjectionView)Updates the clipping plane's based on the given inverse combined projection and view matrix, e.g. from an
|
| clipSpacePlanePoints | back to summary |
|---|---|
| protected static final Vector3[] clipSpacePlanePoints | |
| clipSpacePlanePointsArray | back to summary |
|---|---|
| protected static final float[] clipSpacePlanePointsArray | |
| planePoints | back to summary |
|---|---|
| public final Vector3[] planePoints eight points making up the near and far clipping "rectangles". order is counter clockwise, starting at bottom left | |
| planePointsArray | back to summary |
|---|---|
| protected final float[] planePointsArray | |
| planes | back to summary |
|---|---|
| public final Plane[] planes the six clipping planes, near, far, left, right, top, bottom | |
| tmpV | back to summary |
|---|---|
| private static final Vector3 tmpV | |
| Frustum | back to summary |
|---|---|
| public Frustum() | |
| boundsInFrustum | back to summary |
|---|---|
| public boolean boundsInFrustum(BoundingBox bounds) Returns whether the given
| |
| boundsInFrustum | back to summary |
|---|---|
| public boolean boundsInFrustum(Vector3 center, Vector3 dimensions) Returns whether the given bounding box is in the frustum.
| |
| boundsInFrustum | back to summary |
|---|---|
| public boolean boundsInFrustum(float x, float y, float z, float halfWidth, float halfHeight, float halfDepth) Returns whether the given bounding box is in the frustum.
| |
| boundsInFrustum | back to summary |
|---|---|
| public boolean boundsInFrustum(OrientedBoundingBox obb) Returns whether the given
| |
| pointInFrustum | back to summary |
|---|---|
| public boolean pointInFrustum(Vector3 point) Returns whether the point is in the frustum.
| |
| pointInFrustum | back to summary |
|---|---|
| public boolean pointInFrustum(float x, float y, float z) Returns whether the point is in the frustum.
| |
| sphereInFrustum | back to summary |
|---|---|
| public boolean sphereInFrustum(Vector3 center, float radius) Returns whether the given sphere is in the frustum.
| |
| sphereInFrustum | back to summary |
|---|---|
| public boolean sphereInFrustum(float x, float y, float z, float radius) Returns whether the given sphere is in the frustum.
| |
| sphereInFrustumWithoutNearFar | back to summary |
|---|---|
| public boolean sphereInFrustumWithoutNearFar(Vector3 center, float radius) Returns whether the given sphere is in the frustum not checking whether it is behind the near and far clipping plane.
| |
| sphereInFrustumWithoutNearFar | back to summary |
|---|---|
| public boolean sphereInFrustumWithoutNearFar(float x, float y, float z, float radius) Returns whether the given sphere is in the frustum not checking whether it is behind the near and far clipping plane.
| |
| update | back to summary |
|---|---|
| public void update(Matrix4 inverseProjectionView) Updates the clipping plane's based on the given inverse combined projection and view matrix, e.g. from an
| |