Class Box3D

java.lang.Object
com.irurueta.geometry.Box<Point3D>
com.irurueta.geometry.Box3D
All Implemented Interfaces:
Serializable

public class Box3D extends Box<Point3D>
This class defines a 3D box area aligned with x, y, z axes. A box is defined by two corners, low, containing minimum coordinate values, and high, containing maximum coordinate values. This class is used internally by KD trees and quad trees.
See Also:
  • Constructor Details

    • Box3D

      public Box3D()
      Empty constructor. Creates a box centered at the origin and having unitary volume.
    • Box3D

      public Box3D(Point3D lo, Point3D hi)
      Constructor.
      Parameters:
      lo - low coordinate values.
      hi - high coordinate values.
  • Method Details

    • setBounds

      public final void setBounds(double loX, double loY, double loZ, double hiX, double hiY, double hiZ)
      Sets boundaries.
      Parameters:
      loX - x low coordinate.
      loY - y low coordinate
      loZ - z low coordinate.
      hiX - x high coordinate.
      hiY - y high coordinate.
      hiZ - z high coordinate.