![]() |
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. | |
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 () const |
Calculate the volume of this box. | |
ArrayReal | volume () const |
Calculate the volume of this box. | |
ArrayReal | volume () 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 |
Referenced by contains(), distance(), intersection(), intersects(), and merge().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Tests whether another box contained by this box.
References ArrayAabb().
|
inline |
Tests whether another box contained by this box.
References ArrayAabb().
|
inline |
Tests whether another box contained by this box.
References ArrayAabb().
|
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.
References ArrayAabb(), BOX_INFINITE, and BOX_ZERO.
|
inline |
Returns the minimum distance between a given point and any part of the box.
References ArrayAabb(), BOX_INFINITE, and BOX_ZERO.
|
inline |
References ARRAY_PACKED_REALS, Ogre::Aabb::mCenter, mCenter, Ogre::Aabb::mHalfSize, Ogre::Vector3::x, Ogre::Vector3::y, and Ogre::Vector3::z.
Referenced by Ogre::ObjectData::copy(), and getAsAabb().
|
inline |
|
inline |
|
inline |
Prefer using.
References getAsAabb().
|
inline |
Prefer using.
References getAsAabb().
|
inline |
Prefer using.
References getAsAabb().
|
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.
References ArrayAabb().
Calculate the area of intersection of this box and another.
References ArrayAabb().
Calculate the area of intersection of this box and another.
References ArrayAabb().
|
inline |
Returns whether or not this box intersects another.
References ArrayAabb().
|
inline |
Returns whether or not this box intersects another.
References ArrayAabb().
|
inline |
Returns whether or not this box intersects another.
References ArrayAabb().
|
inline |
Merges the passed in box into the current box.
The result is the box which encompasses both.
References ArrayAabb().
|
inline |
Merges the passed in box into the current box.
The result is the box which encompasses both.
References ArrayAabb().
|
inline |
Merges the passed in box into the current box.
The result is the box which encompasses both.
References ArrayAabb().
|
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, mCenter, Ogre::Aabb::mHalfSize, and mHalfSize.
|
inline |
References Ogre::Aabb::mCenter, mCenter, Ogre::Aabb::mHalfSize, and mHalfSize.
|
inline |
References Ogre::Aabb::mCenter, mCenter, Ogre::Aabb::mHalfSize, and mHalfSize.
|
inline |
|
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 |
Referenced by distance().
|
static |
Referenced by distance().
ArrayVector3 Ogre::ArrayAabb::mCenter |
Referenced by ArrayAabb(), getAsAabb(), setAll(), and setFromAabb().
ArrayVector3 Ogre::ArrayAabb::mHalfSize |
Referenced by ArrayAabb(), and setAll().