Public Methods |
|
__forceinline | AABB () |
| | Constructor.
|
|
__forceinline | ~AABB () |
| | Destructor.
|
| void | SetMinMax (const Point &min, const Point &max) |
| void | SetCenterExtents (const Point &c, const Point &e) |
| void | SetEmpty () |
| void | SetPoint (const Point &pt) |
| float | GetSize () const |
| void | Extend (const Point &p) |
|
__forceinline void | GetMin (Point &min) const |
| | Get min point of the box.
|
|
__forceinline void | GetMax (Point &max) const |
| | Get max point of the box.
|
|
__forceinline float | GetMin (udword axis) const |
| | Get component of the box's min point along a given axis.
|
|
__forceinline float | GetMax (udword axis) const |
| | Get component of the box's max point along a given axis.
|
|
__forceinline void | GetCenter (Point ¢er) const |
| | Get box center.
|
|
__forceinline void | GetExtents (Point &extents) const |
| | Get box extents.
|
|
__forceinline float | GetCenter (udword axis) const |
| | Get component of the box's center along a given axis.
|
|
__forceinline float | GetExtents (udword axis) const |
| | Get component of the box's extents along a given axis.
|
|
__forceinline void | GetDiagonal (Point &diagonal) const |
| | Get box diagonal.
|
|
__forceinline float | GetVolume () const |
| | Volume.
|
| __forceinline bool | Intersect (const AABB &a) const |
| __forceinline bool | Intersect (const AABB &a, udword axis) const |
| __forceinline void | Rotate (const Matrix4x4 &mtx, AABB &aabb) const |
| __forceinline bool | IsValid () const |
|
__forceinline AABB & | operator *= (float s) |
| | Operator for AABB *= float. Scales the extents, keeps same center.
|
|
__forceinline AABB & | operator/= (float s) |
| | Operator for AABB /= float. Scales the extents, keeps same center.
|
|
__forceinline AABB & | operator+= (const Point &trans) |
| | Operator for AABB += Point. Translates the box.
|
Public Attributes |
|
| AABB_COMMON_METHODS |
| | Type-independent methods.
|