OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Cache-friendly array of Aabb represented as a SoA array. More...
#include <OgreArrayAabb.h>
Public Member Functions | |
ArrayAabb () | |
ArrayAabb () | |
ArrayAabb () | |
ArrayAabb (const ArrayVector3 ¢er, const ArrayVector3 &halfSize) | |
ArrayAabb (const ArrayVector3 ¢er, const ArrayVector3 &halfSize) | |
ArrayAabb (const ArrayVector3 ¢er, const ArrayVector3 &halfSize) | |
ArrayMaskR | contains (const ArrayAabb &other) const |
Tests whether another box contained by this box. | |
ArrayMaskR | contains (const ArrayAabb &other) const |
Tests whether another box contained by this box. | |
ArrayMaskR | contains (const ArrayAabb &other) const |
Tests whether another box contained by this box. | |
ArrayMaskR | contains (const ArrayVector3 &v) const |
Tests whether the given point contained by this box. | |
ArrayMaskR | contains (const ArrayVector3 &v) const |
Tests whether the given point contained by this box. | |
ArrayMaskR | contains (const ArrayVector3 &v) const |
Tests whether the given point contained by this box. | |
ArrayReal | distance (const ArrayVector3 &v) const |
Returns the minimum distance between a given point and any part of the box. | |
ArrayReal | distance (const ArrayVector3 &v) const |
Returns the minimum distance between a given point and any part of the box. | |
ArrayReal | distance (const ArrayVector3 &v) const |
Returns the minimum distance between a given point and any part of the box. | |
void | getAsAabb (Aabb &out, size_t index) const |
void | getAsAabb (Aabb &out, size_t index) const |
void | getAsAabb (Aabb &out, size_t index) const |
Aabb | getAsAabb (size_t index) const |
Prefer using. | |
Aabb | getAsAabb (size_t index) const |
Prefer using. | |
Aabb | getAsAabb (size_t index) const |
Prefer using. | |
ArrayVector3 | getMaximum () const |
Gets the maximum corner of the box. | |
ArrayVector3 | getMaximum () const |
Gets the maximum corner of the box. | |
ArrayVector3 | getMaximum () const |
Gets the maximum corner of the box. | |
ArrayVector3 | getMinimum () const |
Gets the minimum corner of the box. | |
ArrayVector3 | getMinimum () const |
Gets the minimum corner of the box. | |
ArrayVector3 | getMinimum () const |
Gets the minimum corner of the box. | |
ArrayAabb | intersection (const ArrayAabb &b2) const |
Calculate the area of intersection of this box and another. | |
ArrayAabb | intersection (const ArrayAabb &b2) const |
Calculate the area of intersection of this box and another. | |
ArrayAabb | intersection (const ArrayAabb &b2) const |
Calculate the area of intersection of this box and another. | |
ArrayMaskR | intersects (const ArrayAabb &b2) const |
Returns whether or not this box intersects another. | |
ArrayMaskR | intersects (const ArrayAabb &b2) const |
Returns whether or not this box intersects another. | |
ArrayMaskR | intersects (const ArrayAabb &b2) const |
Returns whether or not this box intersects another. | |
void | merge (const ArrayAabb &rhs) |
Merges the passed in box into the current box. | |
void | merge (const ArrayAabb &rhs) |
Merges the passed in box into the current box. | |
void | merge (const ArrayAabb &rhs) |
Merges the passed in box into the current box. | |
void | merge (const ArrayVector3 &points) |
Extends the box to encompass the specified point (if needed). | |
void | merge (const ArrayVector3 &points) |
Extends the box to encompass the specified point (if needed). | |
void | merge (const ArrayVector3 &points) |
Extends the box to encompass the specified point (if needed). | |
void | setAll (const Aabb &aabb) |
void | setAll (const Aabb &aabb) |
void | setAll (const Aabb &aabb) |
void | setFromAabb (const Aabb &aabb, size_t index) |
void | setFromAabb (const Aabb &aabb, size_t index) |
void | setFromAabb (const Aabb &aabb, size_t index) |
ArrayReal | squaredDistance (const ArrayVector3 &v) const |
Returns the square of the minimum distance between a given point and any part of the box. | |
ArrayReal | squaredDistance (const ArrayVector3 &v) const |
Returns the square of the minimum distance between a given point and any part of the box. | |
ArrayReal | squaredDistance (const ArrayVector3 &v) const |
Returns the square of the minimum distance between a given point and any part of the box. | |
void | transformAffine (const ArrayMatrix4 &matrix) |
Transforms the box according to the matrix supplied. | |
void | transformAffine (const ArrayMatrix4 &matrix) |
Transforms the box according to the matrix supplied. | |
void | transformAffine (const ArrayMatrix4 &matrix) |
Transforms the box according to the matrix supplied. | |
ArrayReal | volume (void) const |
Calculate the volume of this box. | |
ArrayReal | volume (void) const |
Calculate the volume of this box. | |
ArrayReal | volume (void) const |
Calculate the volume of this box. | |
Public Attributes | |
ArrayVector3 | mCenter |
ArrayVector3 | mHalfSize |
Static Public Attributes | |
static const ArrayAabb | BOX_INFINITE |
static const ArrayAabb | BOX_ZERO |
Cache-friendly array of Aabb represented as a SoA array.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Tests whether another box contained by this box.
|
inline |
Tests whether another box contained by this box.
|
inline |
Tests whether another box contained by this box.
|
inline |
Tests whether the given point contained by this box.
|
inline |
Tests whether the given point contained by this box.
|
inline |
Tests whether the given point contained by this box.
|
inline |
Returns the minimum distance between a given point and any part of the box.
|
inline |
Returns the minimum distance between a given point and any part of the box.
|
inline |
Returns the minimum distance between a given point and any part of the box.
References ARRAY_PACKED_REALS.
References ARRAY_PACKED_REALS.
References ARRAY_PACKED_REALS.
Prefer using.
Prefer using.
Prefer using.
|
inline |
Gets the maximum corner of the box.
Referenced by Ogre::ArrayRay::intersects().
|
inline |
Gets the maximum corner of the box.
|
inline |
Gets the maximum corner of the box.
|
inline |
Gets the minimum corner of the box.
Referenced by Ogre::ArrayRay::intersects().
|
inline |
Gets the minimum corner of the box.
|
inline |
Gets the minimum corner of the box.
Calculate the area of intersection of this box and another.
Calculate the area of intersection of this box and another.
Calculate the area of intersection of this box and another.
|
inline |
Returns whether or not this box intersects another.
|
inline |
Returns whether or not this box intersects another.
|
inline |
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.
Merges the passed in box into the current box.
The result is the box which encompasses both.
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 |
Extends the box to encompass the specified point (if needed).
|
inline |
Extends the box to encompass the specified point (if needed).
References Ogre::Aabb::mCenter, Ogre::Aabb::mHalfSize, and Ogre::ArrayVector3::setAll().
References Ogre::Aabb::mCenter, and Ogre::Aabb::mHalfSize.
References Ogre::Aabb::mCenter, and Ogre::Aabb::mHalfSize.
References ARRAY_PACKED_REALS, Ogre::Aabb::mCenter, Ogre::Aabb::mHalfSize, Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z.
Referenced by Ogre::ObjectData::copy().
|
inline |
Returns the square of the minimum distance between a given point and any part of the box.
|
inline |
Returns the square of the minimum distance between a given point and any part of the box.
|
inline |
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 |
Transforms the box according to the matrix supplied.
|
inline |
Transforms the box according to the matrix supplied.
ArrayVector3 Ogre::ArrayAabb::mCenter |
ArrayVector3 Ogre::ArrayAabb::mHalfSize |