GLUS
|
Go to the source code of this file.
Functions | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector3Copyf (GLUSfloat result[3], const GLUSfloat vector[3]) |
Copies a 3D Vector. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector2Copyf (GLUSfloat result[2], const GLUSfloat vector[2]) |
Copies a 2D Vector. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector3AddVector3f (GLUSfloat result[3], const GLUSfloat vector0[3], const GLUSfloat vector1[3]) |
Adds a 3D Vector to another. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector2AddVector2f (GLUSfloat result[2], const GLUSfloat vector0[2], const GLUSfloat vector1[2]) |
Adds a 2D Vector to another. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector3SubtractVector3f (GLUSfloat result[3], const GLUSfloat vector0[3], const GLUSfloat vector1[3]) |
Subtracts a 3D Vector from another. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector2SubtractVector2f (GLUSfloat result[2], const GLUSfloat vector0[2], const GLUSfloat vector1[2]) |
Subtracts a 2D Vector from another. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector3MultiplyScalarf (GLUSfloat result[3], const GLUSfloat vector[3], const GLUSfloat scalar) |
Multiplies a 3D Vector by a scalar. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector2MultiplyScalarf (GLUSfloat result[2], const GLUSfloat vector[2], const GLUSfloat scalar) |
Multiplies a 2D Vector by a scalar. More... | |
GLUSAPI GLUSfloat GLUSAPIENTRY | glusVector3Lengthf (const GLUSfloat vector[3]) |
Calculates the length of a 3D Vector. More... | |
GLUSAPI GLUSfloat GLUSAPIENTRY | glusVector2Lengthf (const GLUSfloat vector[2]) |
Calculates the length of a 2D Vector. More... | |
GLUSAPI GLUSboolean GLUSAPIENTRY | glusVector3Normalizef (GLUSfloat vector[3]) |
Normalizes the given 3D Vector. More... | |
GLUSAPI GLUSboolean GLUSAPIENTRY | glusVector2Normalizef (GLUSfloat vector[2]) |
Normalizes the given 2D Vector. More... | |
GLUSAPI GLUSfloat GLUSAPIENTRY | glusVector3Dotf (const GLUSfloat vector0[3], const GLUSfloat vector1[3]) |
Calculates the dot product of two 3D vectors. More... | |
GLUSAPI GLUSfloat GLUSAPIENTRY | glusVector2Dotf (const GLUSfloat vector0[2], const GLUSfloat vector1[2]) |
Calculates the dot product of two 2D vectors. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector3Crossf (GLUSfloat result[3], const GLUSfloat vector0[3], const GLUSfloat vector1[3]) |
Calculates the cross product of two 3D vectors: vector0 x vector1. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector3GetQuaternionf (GLUSfloat result[4], const GLUSfloat vector[3]) |
Creates a quaternion out of a 3D vector. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector3GetPoint4f (GLUSfloat result[4], const GLUSfloat vector[3]) |
Creates a 3D point, given as homogeneous coordinates, out of a 3D vector. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector2GetPoint3f (GLUSfloat result[3], const GLUSfloat vector[2]) |
Creates a 2D point, given as homogeneous coordinates, out of a 2D vector. More... | |
GLUSAPI GLUSboolean GLUSAPIENTRY | glusVector3GramSchmidtOrthof (GLUSfloat result[3], const GLUSfloat u[3], const GLUSfloat v[3]) |
Creates a 3D vector orthogonal to u on the u/v plane. More... | |
GLUSAPI GLUSboolean GLUSAPIENTRY | glusVector2GramSchmidtOrthof (GLUSfloat result[2], const GLUSfloat u[2], const GLUSfloat v[2]) |
Creates a 2D vector orthogonal to u. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector3Reflectf (GLUSfloat result[3], const GLUSfloat incident[3], const GLUSfloat normal[3]) |
Calculate the reflection direction for an incident vector. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector2Reflectf (GLUSfloat result[2], const GLUSfloat incident[2], const GLUSfloat normal[2]) |
Calculate the reflection direction for an incident vector. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector3Refractf (GLUSfloat result[3], const GLUSfloat incident[3], const GLUSfloat normal[3], const float eta) |
Calculate the refraction direction for an incident vector. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVector2Refractf (GLUSfloat result[2], const GLUSfloat incident[2], const GLUSfloat normal[2], const float eta) |
Calculate the refraction direction for an incident vector. More... | |
GLUSAPI GLUSfloat GLUSAPIENTRY | glusVector3Fresnelf (const GLUSfloat incident[3], const GLUSfloat normal[3], const GLUSfloat R0) |
Calculate the specular reflection coefficient, based on Schlick's approximation for the Fresnel term. More... | |
GLUSAPI GLUSfloat GLUSAPIENTRY | glusVector2Fresnelf (const GLUSfloat incident[2], const GLUSfloat normal[2], const GLUSfloat R0) |
Calculate the specular reflection coefficient, based on Schlick's approximation for the Fresnel term. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVectorNCopyc (GLUScomplex *result, const GLUScomplex *vector, const GLUSint n) |
Copies a Vector with N elements. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVectorNComplexToFloatc (GLUSfloat *result, const GLUScomplex *vector, const GLUSint n) |
Converts a complex number Vector with N elements to a float Vector. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVectorNFloatToComplexc (GLUScomplex *result, const GLUSfloat *vector, const GLUSint n) |
Converts a float Vector with N elements to a complex Vector. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVectorNMultiplyScalarc (GLUScomplex *result, const GLUScomplex *vector, const GLUSint n, const GLUSfloat scalar) |
Multiplies a Vector with N elements by a scalar. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY | glusVectorNConjugatec (GLUScomplex *result, const GLUScomplex *vector, const GLUSint n) |
Calculates the complex conjugate of a Vector with N elements. More... | |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector2AddVector2f | ( | GLUSfloat | result[2], |
const GLUSfloat | vector0[2], | ||
const GLUSfloat | vector1[2] | ||
) |
Adds a 2D Vector to another.
result | The final vector. |
vector0 | The first vector. |
vector1 | The second vector. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector2Copyf | ( | GLUSfloat | result[2], |
const GLUSfloat | vector[2] | ||
) |
Copies a 2D Vector.
result | The destination vector. |
vector | The source vector. |
GLUSAPI GLUSfloat GLUSAPIENTRY glusVector2Dotf | ( | const GLUSfloat | vector0[2], |
const GLUSfloat | vector1[2] | ||
) |
Calculates the dot product of two 2D vectors.
vector0 | The first vector. |
vector1 | The second vector. |
GLUSAPI GLUSfloat GLUSAPIENTRY glusVector2Fresnelf | ( | const GLUSfloat | incident[2], |
const GLUSfloat | normal[2], | ||
const GLUSfloat | R0 | ||
) |
Calculate the specular reflection coefficient, based on Schlick's approximation for the Fresnel term.
incident | The incident vector. |
normal | The normal vector. |
R0 | The reflection coefficient for light incoming parallel to the normal. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector2GetPoint3f | ( | GLUSfloat | result[3], |
const GLUSfloat | vector[2] | ||
) |
Creates a 2D point, given as homogeneous coordinates, out of a 2D vector.
result | The resulting point. |
vector | The used vector. |
GLUSAPI GLUSboolean GLUSAPIENTRY glusVector2GramSchmidtOrthof | ( | GLUSfloat | result[2], |
const GLUSfloat | u[2], | ||
const GLUSfloat | v[2] | ||
) |
Creates a 2D vector orthogonal to u.
result | The resulting vector. |
u | The vector to calculate a orthogonal vector to. |
v | The vector, which is projected to the orthogonal line of u. |
GLUSAPI GLUSfloat GLUSAPIENTRY glusVector2Lengthf | ( | const GLUSfloat | vector[2] | ) |
Calculates the length of a 2D Vector.
vector | The used vector. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector2MultiplyScalarf | ( | GLUSfloat | result[2], |
const GLUSfloat | vector[2], | ||
const GLUSfloat | scalar | ||
) |
Multiplies a 2D Vector by a scalar.
result | The final vector. |
vector | The used vector for multiplication. |
scalar | The scalar. |
GLUSAPI GLUSboolean GLUSAPIENTRY glusVector2Normalizef | ( | GLUSfloat | vector[2] | ) |
Normalizes the given 2D Vector.
vector | The vector to normalize. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector2Reflectf | ( | GLUSfloat | result[2], |
const GLUSfloat | incident[2], | ||
const GLUSfloat | normal[2] | ||
) |
Calculate the reflection direction for an incident vector.
result | The reflection vector. |
incident | The incident vector. |
normal | The normal vector. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector2Refractf | ( | GLUSfloat | result[2], |
const GLUSfloat | incident[2], | ||
const GLUSfloat | normal[2], | ||
const float | eta | ||
) |
Calculate the refraction direction for an incident vector.
result | The refraction vector. |
incident | The incident vector. |
normal | The normal vector. |
eta | The ratio of indices of refraction. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector2SubtractVector2f | ( | GLUSfloat | result[2], |
const GLUSfloat | vector0[2], | ||
const GLUSfloat | vector1[2] | ||
) |
Subtracts a 2D Vector from another.
result | The final vector. |
vector0 | The vector subtracted by vector1. |
vector1 | The vector subtracted from vector0. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector3AddVector3f | ( | GLUSfloat | result[3], |
const GLUSfloat | vector0[3], | ||
const GLUSfloat | vector1[3] | ||
) |
Adds a 3D Vector to another.
result | The final vector. |
vector0 | The first vector. |
vector1 | The second vector. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector3Copyf | ( | GLUSfloat | result[3], |
const GLUSfloat | vector[3] | ||
) |
Copies a 3D Vector.
result | The destination vector. |
vector | The source vector. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector3Crossf | ( | GLUSfloat | result[3], |
const GLUSfloat | vector0[3], | ||
const GLUSfloat | vector1[3] | ||
) |
Calculates the cross product of two 3D vectors: vector0 x vector1.
result | The resulting vector from the cross product. |
vector0 | The first vector. |
vector1 | The second vector. |
GLUSAPI GLUSfloat GLUSAPIENTRY glusVector3Dotf | ( | const GLUSfloat | vector0[3], |
const GLUSfloat | vector1[3] | ||
) |
Calculates the dot product of two 3D vectors.
vector0 | The first vector. |
vector1 | The second vector. |
GLUSAPI GLUSfloat GLUSAPIENTRY glusVector3Fresnelf | ( | const GLUSfloat | incident[3], |
const GLUSfloat | normal[3], | ||
const GLUSfloat | R0 | ||
) |
Calculate the specular reflection coefficient, based on Schlick's approximation for the Fresnel term.
incident | The incident vector. |
normal | The normal vector. |
R0 | The reflection coefficient for light incoming parallel to the normal. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector3GetPoint4f | ( | GLUSfloat | result[4], |
const GLUSfloat | vector[3] | ||
) |
Creates a 3D point, given as homogeneous coordinates, out of a 3D vector.
result | The resulting point. |
vector | The used vector. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector3GetQuaternionf | ( | GLUSfloat | result[4], |
const GLUSfloat | vector[3] | ||
) |
Creates a quaternion out of a 3D vector.
result | The resulting quaternion. |
vector | The used vector. |
GLUSAPI GLUSboolean GLUSAPIENTRY glusVector3GramSchmidtOrthof | ( | GLUSfloat | result[3], |
const GLUSfloat | u[3], | ||
const GLUSfloat | v[3] | ||
) |
Creates a 3D vector orthogonal to u on the u/v plane.
result | The resulting vector. |
u | The vector to calculate a orthogonal vector to. |
v | The vector, which is projected to the orthogonal line of u. |
GLUSAPI GLUSfloat GLUSAPIENTRY glusVector3Lengthf | ( | const GLUSfloat | vector[3] | ) |
Calculates the length of a 3D Vector.
vector | The used vector. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector3MultiplyScalarf | ( | GLUSfloat | result[3], |
const GLUSfloat | vector[3], | ||
const GLUSfloat | scalar | ||
) |
Multiplies a 3D Vector by a scalar.
result | The final vector. |
vector | The used vector for multiplication. |
scalar | The scalar. |
GLUSAPI GLUSboolean GLUSAPIENTRY glusVector3Normalizef | ( | GLUSfloat | vector[3] | ) |
Normalizes the given 3D Vector.
vector | The vector to normalize. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector3Reflectf | ( | GLUSfloat | result[3], |
const GLUSfloat | incident[3], | ||
const GLUSfloat | normal[3] | ||
) |
Calculate the reflection direction for an incident vector.
result | The reflection vector. |
incident | The incident vector. |
normal | The normal vector. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector3Refractf | ( | GLUSfloat | result[3], |
const GLUSfloat | incident[3], | ||
const GLUSfloat | normal[3], | ||
const float | eta | ||
) |
Calculate the refraction direction for an incident vector.
result | The refraction vector. |
incident | The incident vector. |
normal | The normal vector. |
eta | The ratio of indices of refraction. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVector3SubtractVector3f | ( | GLUSfloat | result[3], |
const GLUSfloat | vector0[3], | ||
const GLUSfloat | vector1[3] | ||
) |
Subtracts a 3D Vector from another.
result | The final vector. |
vector0 | The vector subtracted by vector1. |
vector1 | The vector subtracted from vector0. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVectorNComplexToFloatc | ( | GLUSfloat * | result, |
const GLUScomplex * | vector, | ||
const GLUSint | n | ||
) |
Converts a complex number Vector with N elements to a float Vector.
result | The destination vector. |
vector | The source vector. |
n | The number of elements. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVectorNConjugatec | ( | GLUScomplex * | result, |
const GLUScomplex * | vector, | ||
const GLUSint | n | ||
) |
Calculates the complex conjugate of a Vector with N elements.
result | The vector, containing the complex conjugate. |
vector | The source vector. |
n | The number of elements. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVectorNCopyc | ( | GLUScomplex * | result, |
const GLUScomplex * | vector, | ||
const GLUSint | n | ||
) |
Copies a Vector with N elements.
result | The destination vector. |
vector | The source vector. |
n | The number of elements. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVectorNFloatToComplexc | ( | GLUScomplex * | result, |
const GLUSfloat * | vector, | ||
const GLUSint | n | ||
) |
Converts a float Vector with N elements to a complex Vector.
result | The destination vector. |
vector | The source vector. |
n | The number of elements. |
GLUSAPI GLUSvoid GLUSAPIENTRY glusVectorNMultiplyScalarc | ( | GLUScomplex * | result, |
const GLUScomplex * | vector, | ||
const GLUSint | n, | ||
const GLUSfloat | scalar | ||
) |
Multiplies a Vector with N elements by a scalar.
result | The final vector. |
vector | The used vector for multiplication. |
n | The number of elements. |
scalar | The scalar. |