OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
AoS (array of structures) version of ArrayAabb. More...
#include <OgreAabb.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. | |
bool | contains (const Vector3 &v) const |
Tests whether the given point contained by this box. | |
Real | distance (const Vector3 &v) const |
Returns the minimum distance between a given point and any part of the box. | |
Vector3 | getMaximum () const |
Gets the maximum corner of the box. | |
Vector3 | getMinimum () const |
Gets the minimum corner of the box. | |
Real | getRadius () const |
Returns the radius of a sphere enclosing the aabb from the outside at center mCenter. | |
Real | getRadiusOrigin () const |
Returns the radius of a sphere enclosing the aabb from origin as center. | |
Vector3 | getSize (void) const |
Gets the size of the box. | |
Aabb | intersection (const Aabb &b2) const |
Calculate the area of intersection of this box and another. | |
bool | intersects (const Aabb &b2) const |
Returns whether or not this box intersects another. | |
void | merge (const Aabb &rhs) |
Merges the passed in box into the current box. | |
void | merge (const Vector3 &points) |
Extends the box to encompass the specified point (if needed). | |
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. | |
Real | squaredDistance (const Vector3 &v) const |
Returns the square of the minimum distance between a given point and any part of the box. | |
void | transformAffine (const Matrix4 &matrix) |
Transforms the box according to the matrix supplied. | |
Real | volume (void) const |
Calculate the volume of this box. | |
Static Public Member Functions | |
static Aabb | newFromExtents (const Vector3 &min, const Vector3 &max) |
Sets both minimum and maximum extents at once (static version). | |
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 |
Tests whether another box contained by this box.
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.
Calculate the area of intersection of this box and another.
Returns whether or not this box intersects another.
Merges the passed in box into the current box.
The result is the box which encompasses both.
Extends the box to encompass the specified point (if needed).
Sets both minimum and maximum extents at once (static version).
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.
Transforms the box according to the matrix supplied.
Ogre::Vector3 Ogre::Aabb::mCenter |
Referenced by Ogre::ArrayAabb::setAll(), and Ogre::ArrayAabb::setFromAabb().
Ogre::Vector3 Ogre::Aabb::mHalfSize |
Referenced by Ogre::CubemapProbe::getAreaLS(), Ogre::ArrayAabb::setAll(), and Ogre::ArrayAabb::setFromAabb().