Public Member Functions | |
axisAlignedBox (const axisAlignedBoxInt32 &toCast) | |
axisAlignedBox (const Ogre::AxisAlignedBox &vec) | |
operator Ogre::AxisAlignedBox () const | |
axisAlignedBox (Extent e) | |
axisAlignedBox (const axisAlignedBox &rkBox) | |
axisAlignedBox (const vector3 &min, const vector3 &max) | |
axisAlignedBox (real mx, real my, real mz, real Mx, real My, real Mz) | |
axisAlignedBox & | operator= (const axisAlignedBox &rhs) |
const vector3 & | getMinimum (void) const |
vector3 & | getMinimum (void) |
const vector3 & | getMaximum (void) const |
vector3 & | getMaximum (void) |
void | setMinimum (const vector3 &vec) |
void | setMinimum (real x, real y, real z) |
void | setMinimumX (real x) |
void | setMinimumY (real y) |
void | setMinimumZ (real z) |
void | setMaximum (const vector3 &vec) |
void | setMaximum (real x, real y, real z) |
void | setMaximumX (real x) |
void | setMaximumY (real y) |
void | setMaximumZ (real z) |
void | setExtents (const vector3 &min, const vector3 &max) |
void | setExtents (real mx, real my, real mz, real Mx, real My, real Mz) |
vector3 | getCorner (CornerEnum cornerToGet) const |
void | merge (const axisAlignedBox &rhs) |
void | merge (const vector3 &point) |
void | setNull () |
bool | isNull (void) const |
bool | isFinite (void) const |
void | setInfinite () |
bool | isInfinite (void) const |
bool | intersects (const axisAlignedBox &b2) const |
axisAlignedBox | intersection (const axisAlignedBox &b2) const |
Calculate the area of intersection of this box and another. | |
real | volume (void) const |
Calculate the volume of this box. | |
void | scale (const vector3 &s) |
bool | intersects (const sphere &s) const |
bool | intersects (const plane &p) const |
bool | intersects (const vector3 &v) const |
vector3 | getCenter (void) const |
Gets the centre of the box. | |
vector3 | getSize (void) const |
Gets the size of the box. | |
vector3 | getHalfSize (void) const |
Gets the half-size of the box. | |
bool | contains (const vector3 &v) const |
real | distance (const vector3 &v) const |
bool | contains (const axisAlignedBox &other) const |
bool | operator== (const axisAlignedBox &rhs) const |
bool | operator!= (const axisAlignedBox &rhs) const |
axisAlignedBox | move (const vector3 &vec) const |
axisAlignedBox | operator* (const real &mul) const |
axisAlignedBox & | operator*= (const real &mul) |
axisAlignedBox | operator/ (const real &mul) const |
void | setMinimumAndMaximum (const vector3 &min, const vector3 &max) |
Static Public Attributes | |
static const axisAlignedBox | BOX_NULL |
static const axisAlignedBox | BOX_INFINITE |
Protected Attributes | |
vector3 | mMinimum |
vector3 | mMaximum |
Extent | mExtent |
|
inline |
Tests whether the given point contained by this box.
|
inline |
Tests whether another box contained by this box.
real axisAlignedBox::distance | ( | const vector3 & | v | ) | const |
Returns the minimum distance between a given point and any part of the box.
|
inline |
gets the position of one of the corners
|
inline |
Gets the maximum corner of the box.
|
inline |
Gets a modifiable version of the maximum corner of the box.
|
inline |
Gets the minimum corner of the box.
|
inline |
Gets a modifiable version of the minimum corner of the box.
|
inline |
Returns whether or not this box intersects another.
bool blub::axisAlignedBox::intersects | ( | const sphere & | s | ) | const |
Tests whether this box intersects a sphere.
bool blub::axisAlignedBox::intersects | ( | const plane & | p | ) | const |
Tests whether this box intersects a plane.
|
inline |
Tests whether the vector point is within this box.
|
inline |
Returns true if the box is finite.
|
inline |
Returns true if the box is infinite.
|
inline |
Returns true if the box is null i.e. empty.
|
inline |
Merges the passed in box into the current box. The result is the box which encompasses both.
|
inline |
Extends the box to encompass the specified point (if needed).
|
inline |
Tests 2 boxes for inequality.
|
inline |
Tests 2 boxes for equality.
|
inline |
Scales the AABB by the vector given.
Sets both minimum and maximum extents at once.
|
inline |
Sets the box to 'infinite'
|
inline |
Sets the maximum corner of the box.
|
inline |
Changes one of the components of the maximum corner of the box used to resize only one dimension of the box
|
inline |
Sets the minimum corner of the box.
|
inline |
Changes one of the components of the minimum corner of the box used to resize only one dimension of the box
|
inline |
Sets the box to a 'null' value i.e. not a box.