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 int
INSIDE
static int
INTERSECT
static int
OUTSIDE
static int
PLANE_MASK_NX
static int
PLANE_MASK_NY
static int
PLANE_MASK_NZ
static int
PLANE_MASK_PX
static int
PLANE_MASK_PY
static int
PLANE_MASK_PZ
static int
PLANE_NX
static int
PLANE_NY
static int
PLANE_NZ
static int
PLANE_PX
static int
PLANE_PY
static int
PLANE_PZ
-
Constructor Summary
Constructors Constructor Description FrustumIntersection()
FrustumIntersection(Matrix4fc m)
-
Method Summary
Modifier and Type Method Description int
intersectAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
int
intersectAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int mask)
int
intersectAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int mask, int startPlane)
int
intersectAab(Vector3fc min, Vector3fc max)
int
intersectAab(Vector3fc min, Vector3fc max, int mask)
int
intersectAab(Vector3fc min, Vector3fc max, int mask, int startPlane)
int
intersectSphere(float x, float y, float z, float r)
int
intersectSphere(Vector3fc center, float radius)
FrustumIntersection
set(Matrix4fc m)
boolean
testAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
boolean
testAab(Vector3fc min, Vector3fc max)
boolean
testPoint(float x, float y, float z)
boolean
testPoint(Vector3fc point)
boolean
testSphere(float x, float y, float z, float r)
boolean
testSphere(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)
-