#include <IceAABB.h>
Public Member Functions | |
inline_ | AABB () |
Constructor. More... | |
void | Extend (const Point &p) |
inline_ void | GetCenter (Point ¢er) const |
Get box center. More... | |
inline_ float | GetCenter (udword axis) const |
Get component of the box's center along a given axis. More... | |
inline_ float | GetDepth () const |
inline_ void | GetDiagonal (Point &diagonal) const |
Get box diagonal. More... | |
inline_ void | GetExtents (Point &extents) const |
Get box extents. More... | |
inline_ float | GetExtents (udword axis) const |
Get component of the box's extents along a given axis. More... | |
inline_ float | GetHeight () const |
inline_ void | GetMax (Point &max) const |
Get max point of the box. More... | |
inline_ float | GetMax (udword axis) const |
Get component of the box's max point along a given axis. More... | |
inline_ void | GetMin (Point &min) const |
Get min point of the box. More... | |
inline_ float | GetMin (udword axis) const |
Get component of the box's min point along a given axis. More... | |
float | GetSize () const |
inline_ float | GetVolume () const |
Volume. More... | |
inline_ float | GetWidth () const |
inline_ bool | GomezIntersect (const AABB &a) |
inline_ BOOL | Intersect (const AABB &a) const |
inline_ BOOL | Intersect (const AABB &a, udword axis) const |
inline_ BOOL | IsValid () const |
inline_ AABB & | operator*= (float s) |
Operator for AABB *= float. Scales the extents, keeps same center. More... | |
inline_ AABB & | operator+= (const Point &trans) |
Operator for AABB += Point. Translates the box. More... | |
inline_ AABB & | operator/= (float s) |
Operator for AABB /= float. Scales the extents, keeps same center. More... | |
inline_ void | Rotate (const Matrix4x4 &mtx, AABB &aabb) const |
void | SetCenterExtents (const Point &c, const Point &e) |
void | SetEmpty () |
void | SetMinMax (const Point &min, const Point &max) |
void | SetPoint (const Point &pt) |
inline_ | ~AABB () |
Destructor. More... | |
Public Attributes | |
AABB_COMMON_METHODS | |
Type-independent methods. More... | |
Private Attributes | |
Point | mCenter |
AABB Center. More... | |
Point | mExtents |
x, y and z extents More... | |
|
inline |