java.lang.Object
com.marginallyclever.ro3.mesh.AABB
All Implemented Interfaces:
BoundingVolume, Serializable

public class AABB extends Object implements BoundingVolume, Serializable
Axially-aligned bounding box. Used for fast sorting and filtering.
See Also:
  • Field Details

    • p

      public javax.vecmath.Point3d[] p
  • Constructor Details

    • AABB

      public AABB()
  • Method Details

    • set

      public void set(AABB b)
    • updatePoints

      public void updatePoints()
    • setBounds

      public void setBounds(javax.vecmath.Point3d boundTop, javax.vecmath.Point3d boundBottom)
    • getBoundsTop

      public javax.vecmath.Point3d getBoundsTop()
    • getBoundsBottom

      public javax.vecmath.Point3d getBoundsBottom()
    • getExtentX

      public double getExtentX()
    • getExtentY

      public double getExtentY()
    • getExtentZ

      public double getExtentZ()
    • setPose

      public void setPose(javax.vecmath.Matrix4d m)
    • getPose

      public javax.vecmath.Matrix4d getPose()
    • setDirty

      public void setDirty(boolean newState)
    • setShape

      public void setShape(Mesh shape)
    • getShape

      public Mesh getShape()
    • intersect

      public boolean intersect(Ray ray)