#include <FUBoundingBox.h>
Public Member Functions | |
FUBoundingBox () | |
Empty constructor. | |
FUBoundingBox (const FMVector3 &minimum, const FMVector3 &maximum) | |
Constructor. | |
FUBoundingBox (const FUBoundingBox ©) | |
Copy constructor. | |
~FUBoundingBox () | |
Destructor. | |
void | Reset () |
Resets the bounding box. | |
bool | IsValid () const |
Retrieves whether the bounding box contains valid information. | |
const FMVector3 & | GetMin () const |
Retrieves the minimum bounds of the bounding box. | |
const FMVector3 & | GetMax () const |
Retrieves the maximum bounds of the bounding box. | |
void | SetMin (const FMVector3 &_min) |
Sets the minimum bounds of the bounding box. | |
void | SetMax (const FMVector3 &_max) |
Sets the maximum bounds of the bounding box. | |
FMVector3 | GetCenter () const |
Retrieves the center of the bounding box. | |
bool | Contains (const FMVector3 &point) const |
Retrieves whether the bounding box contains a given 3D coordinate. | |
bool | Overlaps (const FUBoundingBox &boundingBox, FMVector3 *overlapCenter=NULL) const |
Retrieves whether this bounding box overlaps a given bounding box. | |
bool | Overlaps (const FUBoundingSphere &boundingSphere, FMVector3 *overlapCenter=NULL) const |
Retrieves whether this bounding box overlaps a given bounding sphere. | |
void | Include (const FMVector3 &point) |
Extends the bounding box to include the given 3D coordinate. | |
void | Include (const FUBoundingBox &boundingBox) |
Extends the bounding box to include another bounding box. | |
FUBoundingBox | Transform (const FMMatrix44 &transform) const |
Transform the bounding box into another space basis. | |
bool | Equals (const FUBoundingBox &right) const |
Evaluates if this bounding box is equal to the one at the RHS. | |
Static Public Attributes | |
static const FUBoundingBox | Infinity |
Represents an infinite bounding box, including all space. |
|
Empty constructor. The minimum and maximum bounds are set at the largest and most impossible values. |
|
Constructor.
|
|
Copy constructor.
|
|
Retrieves whether the bounding box contains a given 3D coordinate.
|
|
Evaluates if this bounding box is equal to the one at the RHS.
|
|
Retrieves the center of the bounding box.
|
|
Retrieves the maximum bounds of the bounding box.
|
|
Retrieves the minimum bounds of the bounding box.
|
|
Extends the bounding box to include another bounding box.
|
|
Extends the bounding box to include the given 3D coordinate.
|
|
Retrieves whether the bounding box contains valid information. An invalid bounding box has a minimum value that is greater than the maximum value. Reseting the bounding box and the empty constructor generate invalid bounding boxes on purpose.
|
|
Retrieves whether this bounding box overlaps a given bounding sphere.
|
|
Retrieves whether this bounding box overlaps a given bounding box.
|
|
Resets the bounding box. The minimum and maximum bounds are set at the largest and most impossible values. Including a freshly reset bounding box to a valid bounding box will have no effect. |
|
Sets the maximum bounds of the bounding box.
|
|
Sets the minimum bounds of the bounding box.
|
|
Transform the bounding box into another space basis.
|