Package com.irurueta.geometry
Class Box3D
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidsetBounds(double loX, double loY, double loZ, double hiX, double hiY, double hiZ) Sets boundaries.Methods inherited from class com.irurueta.geometry.Box
getDistance, getHi, getLo, getSqrDistance, setBounds, setHi, setLo
-
Constructor Details
-
Box3D
public Box3D()Empty constructor. Creates a box centered at the origin and having unitary volume. -
Box3D
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 coordinateloZ- z low coordinate.hiX- x high coordinate.hiY- y high coordinate.hiZ- z high coordinate.
-