All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
AaBox

public interface ConstAaBox extends ConstJoltPhysicsObject
Read-only access to an AaBox. (native type: const AABox)
  • Method Details

    • contains

      boolean contains(Vec3Arg point)
      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