OGRE-Next
4.0.0unstable
Object-Oriented Graphics Rendering Engine
|
AoS (array of structures) version of ArrayAabb. More...
#include <OgreAabbC.h>
Public Member Functions | |
Aabb () | |
Aabb (const Vector3 ¢er, const Vector3 &halfSize) | |
bool | contains (const Aabb &other) const |
Tests whether another box contained by this box. More... | |
bool | contains (const Vector3 &v) const |
Tests whether the given point contained by this box. More... | |
Real | distance (const Vector3 &v) const |
Returns the minimum distance between a given point and any part of the box. More... | |
Vector3 | getMaximum () const |
Gets the maximum corner of the box. More... | |
Vector3 | getMinimum () const |
Gets the minimum corner of the box. More... | |
Real | getRadius () const |
Returns the radius of a sphere enclosing the aabb from the outside at center mCenter. More... | |
Real | getRadiusOrigin () const |
Returns the radius of a sphere enclosing the aabb from origin as center. More... | |
Vector3 | getSize () const |
Gets the size of the box. More... | |
Aabb | intersection (const Aabb &b2) const |
Calculate the area of intersection of this box and another. More... | |
bool | intersects (const Aabb &b2) const |
Returns whether or not this box intersects another. More... | |
void | merge (const Aabb &rhs) |
Merges the passed in box into the current box. More... | |
void | merge (const Vector3 &points) |
Extends the box to encompass the specified point (if needed). More... | |
bool | operator!= (const Aabb &_r) const |
bool | operator== (const Aabb &_r) const |
void | setExtents (const Vector3 &min, const Vector3 &max) |
Sets both minimum and maximum extents at once. More... | |
Real | squaredDistance (const Vector3 &v) const |
Returns the square of the minimum distance between a given point and any part of the box. More... | |
void | transformAffine (const Matrix4 &matrix) |
Transforms the box according to the matrix supplied. More... | |
Real | volume () const |
Calculate the volume of this box. More... | |
Static Public Member Functions | |
static Aabb | newFromExtents (const Vector3 &min, const Vector3 &max) |
Sets both minimum and maximum extents at once (static version). More... | |
Public Attributes | |
Ogre::Vector3 | mCenter |
Ogre::Vector3 | mHalfSize |
Static Public Attributes | |
static const Aabb | BOX_INFINITE |
static const Aabb | BOX_NULL |
static const Aabb | BOX_ZERO |
AoS (array of structures) version of ArrayAabb.
This class also deprecates AxisAlignedBox. It's A 3D box aligned with the x/y/z axes.
|
inline |
|
inline |
Tests whether another box contained by this box.
|
inline |
Tests whether the given point contained by this box.
Returns the minimum distance between a given point and any part of the box.
|
inline |
Gets the maximum corner of the box.
|
inline |
Gets the minimum corner of the box.
|
inline |
Returns the radius of a sphere enclosing the aabb from the outside at center mCenter.
|
inline |
Returns the radius of a sphere enclosing the aabb from origin as center.
|
inline |
Gets the size of the box.
Calculate the area of intersection of this box and another.
|
inline |
Returns whether or not this box intersects another.
|
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).
Sets both minimum and maximum extents at once (static version).
|
inline |
|
inline |
Sets both minimum and maximum extents at once.
Returns the square of the minimum distance between a given point and any part of the box.
|
inline |
Transforms the box according to the matrix supplied.
|
inline |
Calculate the volume of this box.
|
static |
|
static |
|
static |
Ogre::Vector3 Ogre::Aabb::mCenter |
Referenced by Ogre::ArrayAabb::getAsAabb(), Ogre::ArrayAabb::setAll(), and Ogre::ArrayAabb::setFromAabb().
Ogre::Vector3 Ogre::Aabb::mHalfSize |