Package org.joml
Class FrustumIntersection
java.lang.Object
org.joml.FrustumIntersection
public class FrustumIntersection
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static intINSIDEstatic intINTERSECTstatic intOUTSIDEstatic intPLANE_MASK_NXstatic intPLANE_MASK_NYstatic intPLANE_MASK_NZstatic intPLANE_MASK_PXstatic intPLANE_MASK_PYstatic intPLANE_MASK_PZstatic intPLANE_NXstatic intPLANE_NYstatic intPLANE_NZstatic intPLANE_PXstatic intPLANE_PYstatic intPLANE_PZ -
Constructor Summary
Constructors Constructor Description FrustumIntersection()FrustumIntersection(Matrix4fc m) -
Method Summary
Modifier and Type Method Description intintersectAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)intintersectAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int mask)intintersectAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int mask, int startPlane)intintersectAab(Vector3fc min, Vector3fc max)intintersectAab(Vector3fc min, Vector3fc max, int mask)intintersectAab(Vector3fc min, Vector3fc max, int mask, int startPlane)intintersectSphere(float x, float y, float z, float r)intintersectSphere(Vector3fc center, float radius)FrustumIntersectionset(Matrix4fc m)booleantestAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)booleantestAab(Vector3fc min, Vector3fc max)booleantestPoint(float x, float y, float z)booleantestPoint(Vector3fc point)booleantestSphere(float x, float y, float z, float r)booleantestSphere(Vector3fc center, float radius)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
PLANE_NX
public static final int PLANE_NX- See Also:
- Constant Field Values
-
PLANE_PX
public static final int PLANE_PX- See Also:
- Constant Field Values
-
PLANE_NY
public static final int PLANE_NY- See Also:
- Constant Field Values
-
PLANE_PY
public static final int PLANE_PY- See Also:
- Constant Field Values
-
PLANE_NZ
public static final int PLANE_NZ- See Also:
- Constant Field Values
-
PLANE_PZ
public static final int PLANE_PZ- See Also:
- Constant Field Values
-
INTERSECT
public static final int INTERSECT- See Also:
- Constant Field Values
-
INSIDE
public static final int INSIDE- See Also:
- Constant Field Values
-
OUTSIDE
public static final int OUTSIDE- See Also:
- Constant Field Values
-
PLANE_MASK_NX
public static final int PLANE_MASK_NX- See Also:
- Constant Field Values
-
PLANE_MASK_PX
public static final int PLANE_MASK_PX- See Also:
- Constant Field Values
-
PLANE_MASK_NY
public static final int PLANE_MASK_NY- See Also:
- Constant Field Values
-
PLANE_MASK_PY
public static final int PLANE_MASK_PY- See Also:
- Constant Field Values
-
PLANE_MASK_NZ
public static final int PLANE_MASK_NZ- See Also:
- Constant Field Values
-
PLANE_MASK_PZ
public static final int PLANE_MASK_PZ- See Also:
- Constant Field Values
-
-
Constructor Details
-
FrustumIntersection
public FrustumIntersection() -
FrustumIntersection
-
-
Method Details
-
set
-
testPoint
-
testPoint
public boolean testPoint(float x, float y, float z) -
testSphere
-
testSphere
public boolean testSphere(float x, float y, float z, float r) -
intersectSphere
-
intersectSphere
public int intersectSphere(float x, float y, float z, float r) -
testAab
-
testAab
public boolean testAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) -
intersectAab
-
intersectAab
public int intersectAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ) -
intersectAab
-
intersectAab
public int intersectAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int mask) -
intersectAab
-
intersectAab
public int intersectAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int mask, int startPlane)
-