GLUS
Functions
glus_axisalignedbox.h File Reference

Go to the source code of this file.

Functions

GLUSAPI GLUSvoid GLUSAPIENTRY glusAxisAlignedBoxCopyf (GLUSfloat resultCenter[4], GLUSfloat resultHalfExtend[3], const GLUSfloat center[4], const GLUSfloat halfExtend[3])
 Copies an axis aligned box. More...
 
GLUSAPI GLUSfloat GLUSAPIENTRY glusAxisAlignedBoxDistancePoint4f (const GLUSfloat center[4], const GLUSfloat halfExtend[3], const GLUSfloat point[4])
 Calculates the signed distance from an axis aligned box to a point. More...
 

Function Documentation

GLUSAPI GLUSvoid GLUSAPIENTRY glusAxisAlignedBoxCopyf ( GLUSfloat  resultCenter[4],
GLUSfloat  resultHalfExtend[3],
const GLUSfloat  center[4],
const GLUSfloat  halfExtend[3] 
)

Copies an axis aligned box.

Parameters
resultCenterDestination center.
resultHalfExtendDestination half extend.
centerSource center.
halfExtendSource half extend.
GLUSAPI GLUSfloat GLUSAPIENTRY glusAxisAlignedBoxDistancePoint4f ( const GLUSfloat  center[4],
const GLUSfloat  halfExtend[3],
const GLUSfloat  point[4] 
)

Calculates the signed distance from an axis aligned box to a point.

If the value is negative, the point is inside the box.

Parameters
centerThe center of the box.
halfExtendThe length from the center point to the planes of the box.
pointThe used point.
Returns
The signed distance.