Public Member Functions | |
| TBBox3D () | |
| TBBox3D (const TVector3 &min, const TVector3 &max) | |
| TBBox3D (const TVector3 &max) | |
| void | Init () |
| Sets fMin and fMax to TVector3::kZero. | |
| void | SetMax (const TVector3 &max) |
| Setter function for fMax. | |
| void | SetMin (const TVector3 &min) |
| Setter function for fMin. | |
| void | GetCenter (TVector3 ¢er) const |
| void | GetDelta (TVector3 &delta) const |
| real | GetMax () const |
| real | GetVolume () const |
| Returns the volume of the box. | |
| boolean | IsEmpty () const |
| boolean | IsFlat () const |
| void | AddPoint (const TVector3 &PP) |
| void | Inset (const TVector3 &PP) |
| TVector3 | operator[] (int16 ii) const |
| void | operator+= (const TBBox3D &box) |
| void | FixInvertedFields () |
| void | GetPoint (int16 index, TVector3 &PP) const |
| boolean | IsInside (const TVector3 &point) const |
| Returns true if the point is inside the box. | |
| boolean | Valid () const |
| Returns true if every coordinate of fMin is smaller than its fMax counterpart. | |
| real | GetWidth () const |
| Returns the width (in x) of the box. | |
| real | GetHeight () const |
| Returns the height (in y) of the box. | |
| real | GetDepth (void) const |
| Returns the depth (in z) of the box. | |
Public Attributes | |
| TVector3 | fMin |
| The lower corner of the box. | |
| TVector3 | fMax |
| The upper corner of the box. | |
|
|
Default constructor: fMin is initialized with kRealMax, fMax with kRealMin |
|
||||||||||||
|
Init constructor
|
|
|
Init constructor
|
|
|
Expands the box to encompass the given point
|
|
|
if (#fMin.x > #fMax.x) {#fMin.x= #fMax.x= kRealZero;} and same for y |
|
|
Computes the center of the box
|
|
|
Computes the main diagonal of the box (fMax - fMin)
|
|
|
Returns the depth (in z) of the box.
|
|
|
Returns the height (in y) of the box.
|
|
|
Returns the bigger coordinate of the diagonal |
|
||||||||||||
|
Returns the coordinates of one of the corners of the box
|
|
|
Returns the volume of the box.
|
|
|
Returns the width (in x) of the box.
|
|
|
Sets fMin and fMax to TVector3::kZero.
|
|
|
Shrinks the box by adding PP to fMin, and substracting it from fMax
|
|
|
Returns true if the box is empty |
|
|
Returns true if the box is flat |
|
|
Returns true if the point is inside the box.
|
|
|
Expands the box to encompass the given box
|
|
|
Returns one of the corners of the box (or its center) 2_____6 Z
3/|___7/| ^
| | | | |-->Y
|/0---|/4 /
1_____5 X
|
|
|
Setter function for fMax.
|
|
|
Setter function for fMin.
|
|
|
Returns true if every coordinate of fMin is smaller than its fMax counterpart.
|
|
|
The upper corner of the box.
|
|
|
The lower corner of the box.
|
1.3.9.1