#include <Opcode.h>
Definition at line 268 of file Opcode.h.
void Opcode::AABB::Extend |
( |
const Point & |
p) | |
|
|
inline |
inline_ void Opcode::AABB::GetCenter |
( |
Point & |
center) | |
const |
|
inline |
Get box center.
Definition at line 354 of file Opcode.h.
Get component of the box's center along a given axis.
Definition at line 359 of file Opcode.h.
inline_ void Opcode::AABB::GetDiagonal |
( |
Point & |
diagonal) | |
const |
|
inline |
Get box diagonal.
Definition at line 364 of file Opcode.h.
inline_ void Opcode::AABB::GetExtents |
( |
Point & |
extents) | |
const |
|
inline |
Get box extents.
Definition at line 356 of file Opcode.h.
Get component of the box's extents along a given axis.
Definition at line 361 of file Opcode.h.
Get component of the box's max point along a given axis.
Definition at line 351 of file Opcode.h.
Get component of the box's min point along a given axis.
Definition at line 349 of file Opcode.h.
float Opcode::AABB::GetSize |
( |
) | |
const |
|
inline |
Gets the size of the AABB. The size is defined as the longest extent.
- Returns
- the size of the AABB
Definition at line 317 of file Opcode.h.
The standard intersection method from Gamasutra. Just here to check its speed against the one above.
- Parameters
-
- Returns
- true on intersection
Definition at line 394 of file Opcode.h.
Computes the intersection between two AABBs.
- Parameters
-
- Returns
- true on intersection
Definition at line 379 of file Opcode.h.
Computes the 1D-intersection between two AABBs, on a given axis.
- Parameters
-
a | [in] the other AABB |
axis | [in] the axis (0, 1, 2) |
- Returns
- true on intersection
Definition at line 410 of file Opcode.h.
Checks the AABB is valid.
- Returns
- true if the box is valid
Definition at line 451 of file Opcode.h.
Operator for AABB *= float. Scales the extents, keeps same center.
Definition at line 461 of file Opcode.h.
Operator for AABB /= float. Scales the extents, keeps same center.
Definition at line 464 of file Opcode.h.
Recomputes the AABB after an arbitrary transform by a 4x4 matrix.
- Parameters
-
mtx | [in] the transform matrix |
aabb | [out] the transformed AABB [can be *this] |
Definition at line 425 of file Opcode.h.
void Opcode::AABB::SetCenterExtents |
( |
const Point & |
c, |
|
|
const Point & |
e |
|
) |
| |
|
inline |
Setups an AABB from center & extents vectors.
- Parameters
-
c | [in] the center point |
e | [in] the extents vector |
Definition at line 295 of file Opcode.h.
void Opcode::AABB::SetEmpty |
( |
) | |
|
|
inline |
void Opcode::AABB::SetMinMax |
( |
const Point & |
min, |
|
|
const Point & |
max |
|
) |
| |
|
inline |
Setups an AABB from min & max vectors.
- Parameters
-
min | [in] the min point |
max | [in] the max point |
Definition at line 286 of file Opcode.h.
void Opcode::AABB::SetPoint |
( |
const Point & |
pt) | |
|
|
inline |
Opcode::AABB::AABB_COMMON_METHODS |
Type-independent methods.
Definition at line 277 of file Opcode.h.
The documentation for this class was generated from the following file: