|
|
| CShapeAABB (const CShapeBox &box) |
| |
|
| CShapeAABB (const Vector3 ¢er, const Vector3 &extents) |
| |
|
| CShapeAABB (const CShapeAABB *boxes, int nSize) |
| |
|
| CShapeAABB (const Vector3 *points, int nSize) |
| |
| void | SetMinMax (const Vector3 &min, const Vector3 &max) |
| | Setups an AABB from min & max vectors. More...
|
| |
| void | SetCenterExtents (const Vector3 &c, const Vector3 &e) |
| | Setups an AABB from center & extents vectors. More...
|
| |
|
void | SetEmpty () |
| | Setups an empty AABB.
|
| |
|
void | SetInvalid () |
| | negative extents
|
| |
|
void | SetPointAABB (const Vector3 &pt) |
| | Setups a point AABB.
|
| |
| float | GetSize () const |
| | Gets the size of the AABB. More...
|
| |
| Vector3 | Point (int i) const |
| | get the i of the 8 corner points More...
|
| |
| void | Extend (const Vector3 &p) |
| | Extends the AABB. More...
|
| |
| void | Extend (const CShapeOBB &p) |
| | Extends the AABB. More...
|
| |
| void | ExtendByPointList (const Vector3 *points, int nSize) |
| | Extends the AABB. More...
|
| |
| void | ExtendByAABBList (const CShapeAABB *boxes, int nSize) |
| | Extends the AABB. More...
|
| |
|
void | GetMin (Vector3 &min) const |
| | Get min point of the box.
|
| |
|
void | GetMax (Vector3 &max) const |
| | Get max point of the box.
|
| |
|
Vector3 | GetMin () const |
| | Get min point of the box.
|
| |
|
Vector3 | GetMax () const |
| | Get max point of the box.
|
| |
|
float | GetMin (DWORD axis) const |
| | Get component of the box's min point along a given axis.
|
| |
|
float | GetMax (DWORD axis) const |
| | Get component of the box's max point along a given axis.
|
| |
|
void | GetCenter (Vector3 ¢er) const |
| | Get box center.
|
| |
|
void | GetExtents (Vector3 &extents) const |
| | Get box extents.
|
| |
|
void | SetCenter (const Vector3 ¢er) |
| | Get box center.
|
| |
|
void | SetExtents (const Vector3 &extents) |
| | Get box extents.
|
| |
|
float | GetCenter (DWORD axis) const |
| | Get component of the box's center along a given axis.
|
| |
|
Vector3 & | GetCenter () |
| |
|
float | GetExtents (DWORD axis) const |
| | Get component of the box's extents along a given axis.
|
| |
|
Vector3 & | GetExtents () |
| |
|
void | GetDiagonal (Vector3 &diagonal) const |
| | Get box diagonal.
|
| |
|
float | GetWidth () const |
| |
|
float | GetHeight () const |
| |
|
float | GetDepth () const |
| |
|
float | GetRadius () |
| |
|
void | SetWidth (float fWidth) |
| |
|
void | SetHeight (float fHeight) |
| |
|
void | SetDepth (float fDepth) |
| |
|
float | GetVolume () const |
| | Volume.
|
| |
| BOOL | Intersect (const CShapeAABB &a) const |
| | Computes the intersection between two AABBs. More...
|
| |
| bool | GomezIntersect (const CShapeAABB &a) |
| | The standard intersection method. More...
|
| |
| BOOL | Intersect (const CShapeAABB &a, DWORD axis) const |
| | Computes the 1D-intersection between two CShapeAABBs, on a given axis. More...
|
| |
| bool | Intersect (float *hitDist, const Vector3 *origPt, const Vector3 *dir, int *pHitSide=NULL) |
| | ray AABB intersection More...
|
| |
| bool | IntersectOutside (float *hitDist, const Vector3 *origPt, const Vector3 *dir, int *pHitSide=NULL) |
| | ray AABB intersection More...
|
| |
| void | Rotate (const Matrix4 &mtx, CShapeAABB &aabb) const |
| | Recomputes the CShapeAABB after an arbitrary transform by a 4x4 matrix. More...
|
| |
| BOOL | IsValid () const |
| | Checks the CShapeAABB is valid. More...
|
| |
|
CShapeAABB & | operator*= (float s) |
| | Operator for CShapeAABB *= float. Scales the extents, keeps same center.
|
| |
|
CShapeAABB & | operator/= (float s) |
| | Operator for CShapeAABB /= float. Scales the extents, keeps same center.
|
| |
|
CShapeAABB & | operator+= (const Vector3 &trans) |
| | Operator for CShapeAABB += Vector3. Translates the box.
|
| |
AABB-related code.
(axis-aligned bounding box). Use CShapeBox, if one wants min, max box.