#include <OPC_IceHook.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... | |
Definition at line 268 of file OPC_IceHook.h.
|
inline |
Constructor.
Definition at line 272 of file OPC_IceHook.h.
|
inline |
Destructor.
Definition at line 274 of file OPC_IceHook.h.
Get box center.
Definition at line 354 of file OPC_IceHook.h.
Get component of the box's center along a given axis.
Definition at line 359 of file OPC_IceHook.h.
|
inline |
Definition at line 367 of file OPC_IceHook.h.
Get box diagonal.
Definition at line 364 of file OPC_IceHook.h.
Get box extents.
Definition at line 356 of file OPC_IceHook.h.
Get component of the box's extents along a given axis.
Definition at line 361 of file OPC_IceHook.h.
|
inline |
Definition at line 366 of file OPC_IceHook.h.
Get max point of the box.
Definition at line 346 of file OPC_IceHook.h.
Get component of the box's max point along a given axis.
Definition at line 351 of file OPC_IceHook.h.
Get min point of the box.
Definition at line 344 of file OPC_IceHook.h.
Get component of the box's min point along a given axis.
Definition at line 349 of file OPC_IceHook.h.
|
inline |
Gets the size of the AABB. The size is defined as the longest extent.
Definition at line 317 of file OPC_IceHook.h.
|
inline |
Volume.
Definition at line 370 of file OPC_IceHook.h.
|
inline |
Definition at line 365 of file OPC_IceHook.h.
The standard intersection method from Gamasutra. Just here to check its speed against the one above.
| a | [in] the other AABB |
Definition at line 394 of file OPC_IceHook.h.
Computes the intersection between two AABBs.
| a | [in] the other AABB |
Definition at line 379 of file OPC_IceHook.h.
Computes the 1D-intersection between two AABBs, on a given axis.
| a | [in] the other AABB |
| axis | [in] the axis (0, 1, 2) |
Definition at line 410 of file OPC_IceHook.h.
Checks the AABB is valid.
Definition at line 451 of file OPC_IceHook.h.
Operator for AABB *= float. Scales the extents, keeps same center.
Definition at line 461 of file OPC_IceHook.h.
Operator for AABB += Point. Translates the box.
Definition at line 467 of file OPC_IceHook.h.
Operator for AABB /= float. Scales the extents, keeps same center.
Definition at line 464 of file OPC_IceHook.h.
Recomputes the AABB after an arbitrary transform by a 4x4 matrix.
| mtx | [in] the transform matrix |
| aabb | [out] the transformed AABB [can be *this] |
Definition at line 425 of file OPC_IceHook.h.
Setups an AABB from center & extents vectors.
| c | [in] the center point |
| e | [in] the extents vector |
Definition at line 295 of file OPC_IceHook.h.
|
inline |
Setups an empty AABB.
Definition at line 302 of file OPC_IceHook.h.
Setups an AABB from min & max vectors.
| min | [in] the min point |
| max | [in] the max point |
Definition at line 286 of file OPC_IceHook.h.
Setups a point AABB.
Definition at line 309 of file OPC_IceHook.h.
| IceMaths::AABB::AABB_COMMON_METHODS |
Type-independent methods.
Definition at line 277 of file OPC_IceHook.h.
|
private |
AABB Center.
Definition at line 473 of file OPC_IceHook.h.
|
private |
x, y and z extents
Definition at line 474 of file OPC_IceHook.h.