orx  1.14
Portable Game Engine
OrxAABox

Data Structures

struct  orxAABOX
 

Functions

static orxINLINE orxAABOXorxAABox_Copy (orxAABOX *_pstDst, const orxAABOX *_pstSrc)
 
static orxINLINE orxVECTORorxAABox_GetCenter (const orxAABOX *_pstOp, orxVECTOR *_pvRes)
 
static orxINLINE orxBOOL orxAABox_IsInside (const orxAABOX *_pstBox, const orxVECTOR *_pvPosition)
 
static orxINLINE orxAABOXorxAABox_Move (orxAABOX *_pstRes, const orxAABOX *_pstOp, const orxVECTOR *_pvMove)
 
static orxINLINE orxAABOXorxAABox_Reorder (orxAABOX *_pstBox)
 
static orxINLINE orxAABOXorxAABox_Set (orxAABOX *_pstRes, const orxVECTOR *_pvTL, const orxVECTOR *_pvBR)
 
static orxINLINE orxBOOL orxAABox_Test2DIntersection (const orxAABOX *_pstBox1, const orxAABOX *_pstBox2)
 
static orxINLINE orxBOOL orxAABox_TestIntersection (const orxAABOX *_pstBox1, const orxAABOX *_pstBox2)
 

Detailed Description

Axis-aligned box module Module that handles axis-aligned boxes

Function Documentation

static orxINLINE orxAABOX* orxAABox_Copy ( orxAABOX _pstDst,
const orxAABOX _pstSrc 
)
static

Copies an AABox onto another one

Parameters
[out]_pstDstAABox to copy to (destination)
[in]_pstSrcAABox to copy from (destination)
Returns
Destination AABox

Definition at line 241 of file orxAABox.h.

static orxINLINE orxVECTOR* orxAABox_GetCenter ( const orxAABOX _pstOp,
orxVECTOR _pvRes 
)
static

Gets AABox center position

Parameters
[in]_pstOpConcerned AABox
[out]_pvResCenter 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]_pstBoxBox to test against position
[in]_pvPositionPosition to test against the box
Returns
orxTRUE if position is inside the box, orxFALSE otherwise

Definition at line 141 of file orxAABox.h.

static orxINLINE orxAABOX* orxAABox_Move ( orxAABOX _pstRes,
const orxAABOX _pstOp,
const orxVECTOR _pvMove 
)
static

Moves an AABox

Parameters
[out]_pstResAABox where to store result
[in]_pstOpAABox to move
[in]_pvMoveMove vector
Returns
Moved AABox

Definition at line 260 of file orxAABox.h.

static orxINLINE orxAABOX* orxAABox_Reorder ( orxAABOX _pstBox)
static

Reorders AABox corners

Parameters
[in]_pstBoxBox to reorder
Returns
Reordered AABox

Definition at line 68 of file orxAABox.h.

static orxINLINE orxAABOX* orxAABox_Set ( orxAABOX _pstRes,
const orxVECTOR _pvTL,
const orxVECTOR _pvBR 
)
static

Sets axis aligned box values

Parameters
[out]_pstResAABox to set
[in]_pvTLTop left corner
[in]_pvBRBottom 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]_pstBox1First box operand
[in]_pstBox2Second 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]_pstBox1First box operand
[in]_pstBox2Second box operand
Returns
orxTRUE if boxes intersect, orxFALSE otherwise

Definition at line 176 of file orxAABox.h.


Generated for orx by doxygen 1.8.11