
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. | |
| boolean | Intersect (const TBBox3D &boundingBox) const |
| 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. | |
| TBBox3D::TBBox3D | ( | const TVector3 & | max | ) |
| void TBBox3D::Init | ( | void | ) | [inline] |
Sets fMin and fMax to TVector3::kZero.
| void TBBox3D::GetCenter | ( | TVector3 & | center | ) | const |
Computes the center of the box
| center | the return value for the center of the box |
| void TBBox3D::GetDelta | ( | TVector3 & | delta | ) | const |
| real TBBox3D::GetMax | ( | ) | const |
Returns the bigger coordinate of the diagonal
| real TBBox3D::GetVolume | ( | ) | const |
Returns the volume of the box.
| boolean TBBox3D::IsEmpty | ( | ) | const |
Returns true if the box is empty
| boolean TBBox3D::IsFlat | ( | ) | const |
Returns true if the box is flat
| void TBBox3D::AddPoint | ( | const TVector3 & | PP | ) |
Expands the box to encompass the given point
| PP | the point to add to the box |
| void TBBox3D::Inset | ( | const TVector3 & | PP | ) |
Returns one of the corners of the box (or its center)
2_____6 Z 3/|___7/| ^ | | | | |-->Y |/0---|/4 / 1_____5 X
| ii | the corner index. For values between 0 and 7 retruns the point shown in the diagram above. For 8 returns the center. Otherwise zero is returned. |
| void TBBox3D::operator+= | ( | const TBBox3D & | box | ) |
Expands the box to encompass the given box
| box | the box to add to this box |
| void TBBox3D::FixInvertedFields | ( | ) |
Returns the coordinates of one of the corners of the box
| index | the corner index ( 0<=index<8 ) | |
| PP | the returned corner coordinates |
Returns true if the point is inside the box.
| boolean TBBox3D::Valid | ( | ) | const [inline] |
Returns true if the two boxes intersect
| boundingBox | the box to test for intersection with this box |
| real TBBox3D::GetWidth | ( | ) | const [inline] |
Returns the width (in x) of the box.
| real TBBox3D::GetHeight | ( | ) | const [inline] |
Returns the height (in y) of the box.
| real TBBox3D::GetDepth | ( | void | ) | const [inline] |
Returns the depth (in z) of the box.
The lower corner of the box.
The upper corner of the box.
1.5.3