Interface ConstAaBox
- All Superinterfaces:
Comparable<ConstJoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
AaBox
Read-only access to an
AaBox. (native type: const AABox)-
Method Summary
Modifier and TypeMethodDescriptionbooleanTest whether the box contains the specified point.Locate the center of the box.Copy the (half) extent of the box.getMax()Copy the maximum contained coordinate on each axis.getMin()Copy the minimum contained coordinate on each axis.getSize()Copy the size (full extent) on each axis.floatReturn the volume of the box.booleanisValid()Test whether the box is valid.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, va
-
Method Details
-
contains
Test whether the box contains the specified point. The box is unaffected.- Parameters:
point- the point to test (not null, unaffected)- Returns:
- true if contained, otherwise false
-
getCenter
Vec3 getCenter()Locate the center of the box. The box is unaffected.- Returns:
- a new location vector
-
getExtent
Vec3 getExtent()Copy the (half) extent of the box. The box is unaffected.- Returns:
- a new vector
-
getMax
Vec3 getMax()Copy the maximum contained coordinate on each axis. The box is unaffected.- Returns:
- a new location vector
-
getMin
Vec3 getMin()Copy the minimum contained coordinate on each axis. The box is unaffected.- Returns:
- a new location vector
-
getSize
Vec3 getSize()Copy the size (full extent) on each axis. The box is unaffected.- Returns:
- a new vector
-
getVolume
float getVolume()Return the volume of the box. The box is unaffected.- Returns:
- the volume
-
isValid
boolean isValid()Test whether the box is valid. It is unaffected.- Returns:
- true if valid, otherwise false
-