Axis-aligned box module Module that handles axis-aligned boxes
Copies an AABox onto another one
- Parameters
-
[out] | _pstDst | AABox to copy to (destination) |
[in] | _pstSrc | AABox to copy from (destination) |
- Returns
- Destination AABox
Definition at line 241 of file orxAABox.h.
Gets AABox center position
- Parameters
-
[in] | _pstOp | Concerned AABox |
[out] | _pvRes | Center position |
- Returns
- Center position vector
Definition at line 280 of file orxAABox.h.
static orxINLINE orxBOOL orxAABox_IsInside |
( |
const orxAABOX * |
_pstBox, |
|
|
const orxVECTOR * |
_pvPosition |
|
) |
| |
|
static |
Is position inside axis aligned box test
- Parameters
-
[in] | _pstBox | Box to test against position |
[in] | _pvPosition | Position to test against the box |
- Returns
- orxTRUE if position is inside the box, orxFALSE otherwise
Definition at line 141 of file orxAABox.h.
Moves an AABox
- Parameters
-
[out] | _pstRes | AABox where to store result |
[in] | _pstOp | AABox to move |
[in] | _pvMove | Move vector |
- Returns
- Moved AABox
Definition at line 260 of file orxAABox.h.
Reorders AABox corners
- Parameters
-
[in] | _pstBox | Box to reorder |
- Returns
- Reordered AABox
Definition at line 68 of file orxAABox.h.
Sets axis aligned box values
- Parameters
-
[out] | _pstRes | AABox to set |
[in] | _pvTL | Top left corner |
[in] | _pvBR | Bottom right corner |
- Returns
- orxAABOX / orxNULL
Definition at line 118 of file orxAABox.h.
static orxINLINE orxBOOL orxAABox_Test2DIntersection |
( |
const orxAABOX * |
_pstBox1, |
|
|
const orxAABOX * |
_pstBox2 |
|
) |
| |
|
static |
Tests axis aligned box 2D intersection (no Z-axis test)
- Parameters
-
[in] | _pstBox1 | First box operand |
[in] | _pstBox2 | Second box operand |
- Returns
- orxTRUE if boxes intersect in 2D, orxFALSE otherwise
Definition at line 211 of file orxAABox.h.
static orxINLINE orxBOOL orxAABox_TestIntersection |
( |
const orxAABOX * |
_pstBox1, |
|
|
const orxAABOX * |
_pstBox2 |
|
) |
| |
|
static |
Tests axis aligned box intersection
- Parameters
-
[in] | _pstBox1 | First box operand |
[in] | _pstBox2 | Second box operand |
- Returns
- orxTRUE if boxes intersect, orxFALSE otherwise
Definition at line 176 of file orxAABox.h.