GLUS
|
Go to the source code of this file.
Functions | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusPlaneCopyf (GLUSfloat result[4], const GLUSfloat plane[4]) |
Copies a plane. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusPlaneCreatef (GLUSfloat result[4], const GLUSfloat point[4], const GLUSfloat normal[3]) |
Creates a plane. More... | |
GLUSAPI GLUSfloat GLUSAPIENTRY | glusPlaneDistancePoint4f (const GLUSfloat plane[4], const GLUSfloat point[4]) |
Calculates the signed distance from a plane to a point. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusPlaneGetPoint4f (GLUSfloat point[4], const GLUSfloat plane[4]) |
Calculates a point on the given plane, located around the origin. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY glusPlaneCopyf | ( | GLUSfloat | result[4], |
const GLUSfloat | plane[4] | ||
) |
Copies a plane.
result | Destination plane. |
plane | Source plane. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusPlaneCreatef | ( | GLUSfloat | result[4], |
const GLUSfloat | point[4], | ||
const GLUSfloat | normal[3] | ||
) |
Creates a plane.
The formula is Ax + By + Cz + D = 0, where A,B,C and D are stored in the resulting array.
result | The calculated plane. |
point | Any point on the plane. |
normal | The normal vector of the plane. The vector will be normalized during calculation. |
GLUSAPI GLUSfloat GLUSAPIENTRY glusPlaneDistancePoint4f | ( | const GLUSfloat | plane[4], |
const GLUSfloat | point[4] | ||
) |
Calculates the signed distance from a plane to a point.
If the value is positive, the point is on the side the normal is directing to.
plane | The used plane. |
point | The used point. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusPlaneGetPoint4f | ( | GLUSfloat | point[4], |
const GLUSfloat | plane[4] | ||
) |
Calculates a point on the given plane, located around the origin.
point | The resulting point. |
plane | The used plane. |