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