OGRE-Next
3.0.0
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. More... | |
ArrayMaskR | contains (const ArrayAabb &other) const |
Tests whether another box contained by this box. More... | |
ArrayMaskR | contains (const ArrayAabb &other) const |
Tests whether another box contained by this box. More... | |
ArrayMaskR | contains (const ArrayVector3 &v) const |
Tests whether the given point contained by this box. More... | |
ArrayMaskR | contains (const ArrayVector3 &v) const |
Tests whether the given point contained by this box. More... | |
ArrayMaskR | contains (const ArrayVector3 &v) const |
Tests whether the given point contained by this box. More... | |
ArrayReal | distance (const ArrayVector3 &v) const |
Returns the minimum distance between a given point and any part of the box. More... | |
ArrayReal | distance (const ArrayVector3 &v) const |
Returns the minimum distance between a given point and any part of the box. More... | |
ArrayReal | distance (const ArrayVector3 &v) const |
Returns the minimum distance between a given point and any part of the box. More... | |
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. More... | |
Aabb | getAsAabb (size_t index) const |
Prefer using. More... | |
Aabb | getAsAabb (size_t index) const |
Prefer using. More... | |
ArrayVector3 | getMaximum () const |
Gets the maximum corner of the box. More... | |
ArrayVector3 | getMaximum () const |
Gets the maximum corner of the box. More... | |
ArrayVector3 | getMaximum () const |
Gets the maximum corner of the box. More... | |
ArrayVector3 | getMinimum () const |
Gets the minimum corner of the box. More... | |
ArrayVector3 | getMinimum () const |
Gets the minimum corner of the box. More... | |
ArrayVector3 | getMinimum () const |
Gets the minimum corner of the box. More... | |
ArrayAabb | intersection (const ArrayAabb &b2) const |
Calculate the area of intersection of this box and another. More... | |
ArrayAabb | intersection (const ArrayAabb &b2) const |
Calculate the area of intersection of this box and another. More... | |
ArrayAabb | intersection (const ArrayAabb &b2) const |
Calculate the area of intersection of this box and another. More... | |
ArrayMaskR | intersects (const ArrayAabb &b2) const |
Returns whether or not this box intersects another. More... | |
ArrayMaskR | intersects (const ArrayAabb &b2) const |
Returns whether or not this box intersects another. More... | |
ArrayMaskR | intersects (const ArrayAabb &b2) const |
Returns whether or not this box intersects another. More... | |
void | merge (const ArrayAabb &rhs) |
Merges the passed in box into the current box. More... | |
void | merge (const ArrayAabb &rhs) |
Merges the passed in box into the current box. More... | |
void | merge (const ArrayAabb &rhs) |
Merges the passed in box into the current box. More... | |
void | merge (const ArrayVector3 &points) |
Extends the box to encompass the specified point (if needed). More... | |
void | merge (const ArrayVector3 &points) |
Extends the box to encompass the specified point (if needed). More... | |
void | merge (const ArrayVector3 &points) |
Extends the box to encompass the specified point (if needed). More... | |
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. More... | |
ArrayReal | squaredDistance (const ArrayVector3 &v) const |
Returns the square of the minimum distance between a given point and any part of the box. More... | |
ArrayReal | squaredDistance (const ArrayVector3 &v) const |
Returns the square of the minimum distance between a given point and any part of the box. More... | |
void | transformAffine (const ArrayMatrix4 &matrix) |
Transforms the box according to the matrix supplied. More... | |
void | transformAffine (const ArrayMatrix4 &matrix) |
Transforms the box according to the matrix supplied. More... | |
void | transformAffine (const ArrayMatrix4 &matrix) |
Transforms the box according to the matrix supplied. More... | |
ArrayReal | volume () const |
Calculate the volume of this box. More... | |
ArrayReal | volume () const |
Calculate the volume of this box. More... | |
ArrayReal | volume () const |
Calculate the volume of this box. More... | |
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.
|
inline |
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 |
|
inline |
|
inline |
Prefer using.
|
inline |
Prefer using.
|
inline |
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.
|
inline |
Merges the passed in box into the current box.
The result is the box which encompasses both.
|
inline |
Merges the passed in box into the current box.
The result is the box which encompasses both.
|
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 |
Extends the box to encompass the specified point (if needed).
|
inline |
Extends the box to encompass the specified point (if needed).
|
inline |
References Ogre::Aabb::mCenter, Ogre::Aabb::mHalfSize, and Ogre::ArrayVector3::setAll().
|
inline |
References Ogre::Aabb::mCenter, and Ogre::Aabb::mHalfSize.
|
inline |
References Ogre::Aabb::mCenter, and Ogre::Aabb::mHalfSize.
|
inline |
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 |
|
inline |
|
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.
|
inline |
Calculate the volume of this box.
|
inline |
Calculate the volume of this box.
|
inline |
Calculate the volume of this box.
|
static |
|
static |
ArrayVector3 Ogre::ArrayAabb::mCenter |
ArrayVector3 Ogre::ArrayAabb::mHalfSize |