
Public Member Functions | |
| TBBox2D () | |
| TBBox2D (const TVector2 &min, const TVector2 &max) | |
| TBBox2D (const TVector2 &max) | |
| void | SetMax (const TVector2 &max) |
| Setter function for fMax. | |
| void | SetMin (const TVector2 &min) |
| Setter function for fMin. | |
| void | GetCenter (TVector2 ¢er) const |
| void | GetDelta (TVector2 &delta) const |
| real | GetMax () const |
| boolean | IsEmpty () const |
| void | AddPoint (const TVector2 &PP) |
| void | Inset (const TVector2 &PP) |
| TVector2 | operator[] (int16 ii) const |
| void | FixInvertedFields () |
| boolean | IsInside (const TVector2 &point) const |
| void | ClipBy (const TBBox2D &clipBounds) |
| boolean | Intersect (const TBBox2D &boundingBox) const |
| real | GetWidth (void) const |
| Returns the width (in x) of the box. | |
| real | GetHeight (void) const |
| Returns the height (in y) of the box. | |
| boolean | operator== (const TBBox2D &rhs) |
| Returns true if the two boxes are equal. | |
Public Attributes | |
| TVector2 | fMin |
| The lower corner of the box. | |
| TVector2 | fMax |
| The upper corner of the box. | |
| TBBox2D::TBBox2D | ( | const TVector2 & | max | ) |
| void TBBox2D::GetCenter | ( | TVector2 & | center | ) | const |
Computes the center of the box
| center | the return value for the center of the box |
| void TBBox2D::GetDelta | ( | TVector2 & | delta | ) | const |
| real TBBox2D::GetMax | ( | ) | const |
Returns the bigger coordinate of the diagonal
| boolean TBBox2D::IsEmpty | ( | ) | const |
Returns true if the box is empty
| void TBBox2D::AddPoint | ( | const TVector2 & | PP | ) |
Expands the box to encompass the given point
| PP | the point to add to the box |
| void TBBox2D::Inset | ( | const TVector2 & | PP | ) |
| void TBBox2D::FixInvertedFields | ( | ) |
Returns true if the point is inside the box.
| point | the point to intersect with the box |
| void TBBox2D::ClipBy | ( | const TBBox2D & | clipBounds | ) |
Clips the box by another box
| clipBounds | the bounds that this box should not cross |
Returns true if the two boxes intersect
| boundingBox | the box to test for intersection with this box |
| real TBBox2D::GetWidth | ( | void | ) | const [inline] |
Returns the width (in x) of the box.
| real TBBox2D::GetHeight | ( | void | ) | const [inline] |
Returns the height (in y) of the box.
Returns true if the two boxes are equal.
The lower corner of the box.
The upper corner of the box.
1.5.3