GLUS
Functions
glus_orientedbox.c File Reference
#include "GL/glus.h"

Functions

GLUSvoid GLUSAPIENTRY glusOrientedBoxCopyf (GLUSfloat resultCenter[4], GLUSfloat resultHalfExtend[3], GLUSfloat resultOrientation[3], const GLUSfloat center[4], const GLUSfloat halfExtend[3], const GLUSfloat orientation[3])
 Copies an oriented box. More...
 
GLUSfloat GLUSAPIENTRY glusOrientedBoxDistancePoint4f (const GLUSfloat center[4], const GLUSfloat halfExtend[3], const GLUSfloat orientation[3], const GLUSfloat point[4])
 Calculates the signed distance from an oriented box to a point. More...
 

Function Documentation

GLUSvoid GLUSAPIENTRY glusOrientedBoxCopyf ( GLUSfloat  resultCenter[4],
GLUSfloat  resultHalfExtend[3],
GLUSfloat  resultOrientation[3],
const GLUSfloat  center[4],
const GLUSfloat  halfExtend[3],
const GLUSfloat  orientation[3] 
)

Copies an oriented box.

Parameters
resultCenterDestination center.
resultHalfExtendDestination half extend.
resultOrientationDestination orientation.
centerSource center.
halfExtendSource half extend.
orientationSource orientation.
GLUSfloat GLUSAPIENTRY glusOrientedBoxDistancePoint4f ( const GLUSfloat  center[4],
const GLUSfloat  halfExtend[3],
const GLUSfloat  orientation[3],
const GLUSfloat  point[4] 
)

Calculates the signed distance from an oriented 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.
orientationThe orientation of the box.
pointThe used point.
Returns
The signed distance.