GLUS
|
#include "GL/glus.h"
Functions | |
GLUSvoid GLUSAPIENTRY | glusQuaternionIdentityf (GLUSfloat quaternion[4]) |
Creates the identity Quaternion. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionCopyf (GLUSfloat result[4], const GLUSfloat quaternion[4]) |
Copies a Quaternion. More... | |
GLUSfloat GLUSAPIENTRY | glusQuaternionNormf (const GLUSfloat quaternion[4]) |
Calculates the norm of a Quaternion. More... | |
GLUSboolean GLUSAPIENTRY | glusQuaternionNormalizef (GLUSfloat quaternion[4]) |
Normalized a Quaternion. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionAddQuaternionf (GLUSfloat result[4], const GLUSfloat quaternion0[4], const GLUSfloat quaternion1[4]) |
Adds two Quaternions. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionSubQuaternionf (GLUSfloat result[4], const GLUSfloat quaternion0[4], const GLUSfloat quaternion1[4]) |
Subtracts two Quaternions: quaternion0 - quaternion1. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionMultiplyQuaternionf (GLUSfloat result[4], const GLUSfloat quaternion0[4], const GLUSfloat quaternion1[4]) |
Multiplies two Quaternions: quaternion0 * quaternion1. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionConjugatef (GLUSfloat quaternion[4]) |
Calculates the conjugate of a Quaternion. More... | |
GLUSboolean GLUSAPIENTRY | glusQuaternionInversef (GLUSfloat quaternion[4]) |
Calculates the inverse of a Quaternion. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionInverseUnitf (GLUSfloat quaternion[4]) |
Calculates the inverse of a unit Quaternion. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionRotatef (GLUSfloat quaternion[4], const GLUSfloat angle, const GLUSfloat x, const GLUSfloat y, const GLUSfloat z) |
Creates a rotation Quaternion around a given axis. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionRotateRxf (GLUSfloat quaternion[4], const GLUSfloat angle) |
Creates a rotation Quaternion around a the x axis. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionRotateRyf (GLUSfloat quaternion[4], const GLUSfloat angle) |
Creates a rotation Quaternion around a the y axis. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionRotateRzf (GLUSfloat quaternion[4], const GLUSfloat angle) |
Creates a rotation Quaternion around a the z axis. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionRotateRzRxRyf (GLUSfloat quaternion[4], const GLUSfloat anglez, const GLUSfloat anglex, const GLUSfloat angley) |
Creates a rotation Quaternion out of Euler angels: Rz * Rx * Ry. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusQuaternionRotateRzRyRxf (GLUSfloat quaternion[4], const GLUSfloat anglez, const GLUSfloat angley, const GLUSfloat anglex) |
Creates a rotation Quaternion out of Euler angels: Rz * Ry * Rx. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionGetMatrix4x4f (GLUSfloat matrix[16], const GLUSfloat quaternion[4]) |
Creates a 4x4 matrix out of a Quaternion. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionGetMatrix3x3f (GLUSfloat matrix[9], const GLUSfloat quaternion[4]) |
Creates a 3x3 matrix out of a Quaternion. More... | |
GLUSboolean GLUSAPIENTRY | glusQuaternionGetPoint4f (GLUSfloat point[4], const GLUSfloat quaternion[4]) |
Creates a 3D Point, given as homogeneous coordinates, out of a Quaternion. More... | |
GLUSAPI GLUSboolean GLUSAPIENTRY | glusQuaternionGetVector3f (GLUSfloat vector[3], const GLUSfloat quaternion[4]) |
Creates a 3D Vector, out of a Quaternion. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionGetEulerRzRxRyf (GLUSfloat angles[3], const GLUSfloat quaternion[4]) |
Extracts the Euler angles from a Quaternion, created by Rz * Rx * Ry. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusQuaternionGetEulerRzRyRxf (GLUSfloat angles[3], const GLUSfloat quaternion[4]) |
Extracts the Euler angles from a Quaternion, created by Rz * Ry * Rx. More... | |
GLUSvoid GLUSAPIENTRY | glusQuaternionSlerpf (GLUSfloat result[4], const GLUSfloat quaternion0[4], const GLUSfloat quaternion1[4], const GLUSfloat t) |
Spherical interpolation of two Quaternions. More... | |
GLUSvoid GLUSAPIENTRY glusQuaternionAddQuaternionf | ( | GLUSfloat | result[4], |
const GLUSfloat | quaternion0[4], | ||
const GLUSfloat | quaternion1[4] | ||
) |
Adds two Quaternions.
result | The sum of both Quaternions. |
quaternion0 | The first Quaternion. |
quaternion1 | The second Quaternion. |
GLUSvoid GLUSAPIENTRY glusQuaternionConjugatef | ( | GLUSfloat | quaternion[4] | ) |
Calculates the conjugate of a Quaternion.
quaternion | The Quaternion to conjugate. |
GLUSvoid GLUSAPIENTRY glusQuaternionCopyf | ( | GLUSfloat | result[4], |
const GLUSfloat | quaternion[4] | ||
) |
Copies a Quaternion.
result | The destination Quaternion. |
quaternion | The source Quaternion. |
GLUSvoid GLUSAPIENTRY glusQuaternionGetEulerRzRxRyf | ( | GLUSfloat | angles[3], |
const GLUSfloat | quaternion[4] | ||
) |
Extracts the Euler angles from a Quaternion, created by Rz * Rx * Ry.
angles | Resulting anglex (Pitch), angley (Yaw) and anglez (Roll) in degrees. |
quaternion | The used Quaternion. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusQuaternionGetEulerRzRyRxf | ( | GLUSfloat | angles[3], |
const GLUSfloat | quaternion[4] | ||
) |
Extracts the Euler angles from a Quaternion, created by Rz * Ry * Rx.
angles | Resulting anglex (Pitch), angley (Yaw) and anglez (Roll) in degrees. |
quaternion | The used Quaternion. |
GLUSvoid GLUSAPIENTRY glusQuaternionGetMatrix3x3f | ( | GLUSfloat | matrix[9], |
const GLUSfloat | quaternion[4] | ||
) |
Creates a 3x3 matrix out of a Quaternion.
matrix | The resulting matrix. |
quaternion | The final Quaternion. |
GLUSvoid GLUSAPIENTRY glusQuaternionGetMatrix4x4f | ( | GLUSfloat | matrix[16], |
const GLUSfloat | quaternion[4] | ||
) |
Creates a 4x4 matrix out of a Quaternion.
matrix | The resulting matrix. |
quaternion | The final quaternion. |
GLUSboolean GLUSAPIENTRY glusQuaternionGetPoint4f | ( | GLUSfloat | point[4], |
const GLUSfloat | quaternion[4] | ||
) |
Creates a 3D Point, given as homogeneous coordinates, out of a Quaternion.
point | The resulting point. |
quaternion | The used Quaternion. |
GLUSAPI GLUSboolean GLUSAPIENTRY glusQuaternionGetVector3f | ( | GLUSfloat | vector[3], |
const GLUSfloat | quaternion[4] | ||
) |
Creates a 3D Vector, out of a Quaternion.
vector | The resulting vecotor. |
quaternion | The used Quaternion. |
GLUSvoid GLUSAPIENTRY glusQuaternionIdentityf | ( | GLUSfloat | quaternion[4] | ) |
Creates the identity Quaternion.
quaternion | The resulting identity Quaternion. |
GLUSboolean GLUSAPIENTRY glusQuaternionInversef | ( | GLUSfloat | quaternion[4] | ) |
Calculates the inverse of a Quaternion.
quaternion | The Quaternion to invert. |
GLUSvoid GLUSAPIENTRY glusQuaternionInverseUnitf | ( | GLUSfloat | quaternion[4] | ) |
Calculates the inverse of a unit Quaternion.
quaternion | The Quaternion to invert. |
GLUSvoid GLUSAPIENTRY glusQuaternionMultiplyQuaternionf | ( | GLUSfloat | result[4], |
const GLUSfloat | quaternion0[4], | ||
const GLUSfloat | quaternion1[4] | ||
) |
Multiplies two Quaternions: quaternion0 * quaternion1.
result | The multiplied Quaternion. |
quaternion0 | The first Quaternion. |
quaternion1 | The second Quaternion. |
GLUSboolean GLUSAPIENTRY glusQuaternionNormalizef | ( | GLUSfloat | quaternion[4] | ) |
Normalized a Quaternion.
quaternion | The Quaternion to normalize. |
GLUSfloat GLUSAPIENTRY glusQuaternionNormf | ( | const GLUSfloat | quaternion[4] | ) |
Calculates the norm of a Quaternion.
quaternion | The Quaternion to calculate the norm from. |
GLUSvoid GLUSAPIENTRY glusQuaternionRotatef | ( | GLUSfloat | quaternion[4], |
const GLUSfloat | angle, | ||
const GLUSfloat | x, | ||
const GLUSfloat | y, | ||
const GLUSfloat | z | ||
) |
Creates a rotation Quaternion around a given axis.
quaternion | The final quaternion. |
angle | The rotation angle in degree. |
x | The x coordinate of the axis. |
y | The y coordinate of the axis. |
z | The z coordinate of the axis. |
GLUSvoid GLUSAPIENTRY glusQuaternionRotateRxf | ( | GLUSfloat | quaternion[4], |
const GLUSfloat | angle | ||
) |
Creates a rotation Quaternion around a the x axis.
quaternion | The final quaternion. |
angle | The rotation angle in degree. |
GLUSvoid GLUSAPIENTRY glusQuaternionRotateRyf | ( | GLUSfloat | quaternion[4], |
const GLUSfloat | angle | ||
) |
Creates a rotation Quaternion around a the y axis.
quaternion | The final quaternion. |
angle | The rotation angle in degree. |
GLUSvoid GLUSAPIENTRY glusQuaternionRotateRzf | ( | GLUSfloat | quaternion[4], |
const GLUSfloat | angle | ||
) |
Creates a rotation Quaternion around a the z axis.
quaternion | The final quaternion. |
angle | The rotation angle in degree. |
GLUSvoid GLUSAPIENTRY glusQuaternionRotateRzRxRyf | ( | GLUSfloat | quaternion[4], |
const GLUSfloat | anglez, | ||
const GLUSfloat | anglex, | ||
const GLUSfloat | angley | ||
) |
Creates a rotation Quaternion out of Euler angels: Rz * Rx * Ry.
quaternion | The final quaternion. |
anglez | The rotation z angle in degree. |
anglex | The rotation x angle in degree. |
angley | The rotation y angle in degree. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusQuaternionRotateRzRyRxf | ( | GLUSfloat | quaternion[4], |
const GLUSfloat | anglez, | ||
const GLUSfloat | angley, | ||
const GLUSfloat | anglex | ||
) |
Creates a rotation Quaternion out of Euler angels: Rz * Ry * Rx.
quaternion | The final quaternion. |
anglez | The rotation z angle in degree. |
angley | The rotation y angle in degree. |
anglex | The rotation x angle in degree. |
GLUSvoid GLUSAPIENTRY glusQuaternionSlerpf | ( | GLUSfloat | result[4], |
const GLUSfloat | quaternion0[4], | ||
const GLUSfloat | quaternion1[4], | ||
const GLUSfloat | t | ||
) |
Spherical interpolation of two Quaternions.
result | The interpolated Quaternion. |
quaternion0 | The first Quaternion. |
quaternion1 | The second Quaternion. |
t | The fraction of both Quaternions. |
GLUSvoid GLUSAPIENTRY glusQuaternionSubQuaternionf | ( | GLUSfloat | result[4], |
const GLUSfloat | quaternion0[4], | ||
const GLUSfloat | quaternion1[4] | ||
) |
Subtracts two Quaternions: quaternion0 - quaternion1.
result | The difference of both Quaternions. |
quaternion0 | The first Quaternion. |
quaternion1 | The second Quaternion. |