OEBox¶
class OEBox
OEBox class represents a box aligned to the x, y and z coordinate axis.
Extend¶
bool Extend(const float x, const float y, const float z)
bool Extend(const float value)
Extend the box in all dimensions with the specified values. The box is extended simultaneously in both maximum and minimum coordinate directions
IsInside¶
bool IsInside(const float x, const float y, const float z) const
Returns if the specified point is inside the box
Setup¶
bool Setup(const float x1, const float y1, const float z1,
const float x2, const float y2, const float z2)
bool Setup(const float* xyz, const unsigned numPoints, const bool addbox = 0.0f)
bool Setup(const float* center, const float* extents)
Sets up the box.
The first overload expects the maximum and minimum values in all directions. The max and min X values are the max and min of x1, x2 respectively. Minimum and maximum values of Y and Z are selected in an analogous fashion.
The second overload creates a box that encapsulates all the specified data points.
The number of values in xyz
must be three times that specified in numPoints
.
The value in addbox
extends the box in all three dimensions with the specified value.
The box is extended simultaneously in both maximum and minimum coordinate directions,
when specified.
The third overload creates a box with the specified center and extent.