GLUS
|
#include "GL/glus.h"
Functions | |
GLUSfloat GLUSAPIENTRY | glusMathMaxf (const GLUSfloat value0, const GLUSfloat value1) |
Calculates the maximum of two values. More... | |
GLUSfloat GLUSAPIENTRY | glusMathMinf (const GLUSfloat value0, const GLUSfloat value1) |
Calculates the minimum of two values. More... | |
GLUSfloat GLUSAPIENTRY | glusMathRadToDegf (const GLUSfloat radians) |
Converts radians to degrees. More... | |
GLUSfloat GLUSAPIENTRY | glusMathDegToRadf (const GLUSfloat degrees) |
Converts degrees to radians. More... | |
GLUSfloat GLUSAPIENTRY | glusMathMixf (const GLUSfloat value0, const GLUSfloat value1, const GLUSfloat t) |
Linear interpolation of two values. More... | |
GLUSfloat GLUSAPIENTRY | glusMathClampf (const GLUSfloat value, const GLUSfloat min, const GLUSfloat max) |
Clamps a given value between a minimum and maximum value. More... | |
GLUSfloat GLUSAPIENTRY | glusMathLengthf (const GLUSfloat x, const GLUSfloat y, const GLUSfloat z) |
Calculates the length of a vector or the distance of a point to the origin by providing the x, y and z coordinates. More... | |
GLUSfloat GLUSAPIENTRY glusMathClampf | ( | const GLUSfloat | value, |
const GLUSfloat | min, | ||
const GLUSfloat | max | ||
) |
Clamps a given value between a minimum and maximum value.
If the value is between min and max, the value is returned.
value | The value to be clamped. |
min | The minimum border. If the value is lower than min, min is returned. |
max | The maximum border. If the value is greater than max, max is returned. |
GLUSfloat GLUSAPIENTRY glusMathDegToRadf | ( | const GLUSfloat | degrees | ) |
Converts degrees to radians.
degrees | The angle in degrees. |
GLUSfloat GLUSAPIENTRY glusMathLengthf | ( | const GLUSfloat | x, |
const GLUSfloat | y, | ||
const GLUSfloat | z | ||
) |
Calculates the length of a vector or the distance of a point to the origin by providing the x, y and z coordinates.
x | The x coordinate. |
y | The y coordinate. |
z | The z coordinate. |
GLUSfloat GLUSAPIENTRY glusMathMaxf | ( | const GLUSfloat | value0, |
const GLUSfloat | value1 | ||
) |
Calculates the maximum of two values.
value0 | The first value. |
value1 | The second value. |
GLUSfloat GLUSAPIENTRY glusMathMinf | ( | const GLUSfloat | value0, |
const GLUSfloat | value1 | ||
) |
Calculates the minimum of two values.
value0 | The first value. |
value1 | The second value. |
GLUSfloat GLUSAPIENTRY glusMathMixf | ( | const GLUSfloat | value0, |
const GLUSfloat | value1, | ||
const GLUSfloat | t | ||
) |
Linear interpolation of two values.
If t = 0, value0 is returned. If t = 1, value1 is returned.
value0 | First value. |
value1 | Second value. |
t | The fraction. |
GLUSfloat GLUSAPIENTRY glusMathRadToDegf | ( | const GLUSfloat | radians | ) |
Converts radians to degrees.
radians | The angle in radians. |