#include <Math.h>
Static Public Member Functions | |
static float | Deg2Rad (float degrees) |
Converts degrees to radians. | |
static float | Rad2Deg (float radians) |
Converts radians to degrees. | |
static int | Sign (int i) |
Returns 1, 0 or -1 depending on the value of i. | |
static float | Sign (float f) |
Returns 1.0f, 0.0f or -1.0f depending on the value of f. | |
static float | CubicInterpolate (float v0, float v1, float v2, float v3, float x) |
Interpolates a serie of points between v1 and v2, given a point before v1, a point after v2 and a coordinate belonging to [0.0, 1.0] that represents the x coordinate of the point between v1 and v2. | |
static float | DiffCubicInterpolate (float v0, float v1, float v2, float v3, float x) |
Gives the differential coefficient of the interpolate curve given by CubicInterpolate(v0, v1, v2, v3, x) at the coordinate x belonging to [0.0, 1.0]. | |
Static Public Attributes | |
static const float | PI |
Value of PI. | |
static const float | PI2 |
Value of 2*PI. | |
static const float | HalfPI |
Value of PI/2. | |
Private Member Functions | |
Math () | |
Constructor. Is private to prevent instanciation. | |
Static Private Attributes | |
static const float | cDeg2Rad |
constant for converting degrees to radians | |
static const float | cRad2Deg |
constant for converting radiant to degrees |
|
Constructor. Is private to prevent instanciation.
|
|
Interpolates a serie of points between v1 and v2, given a point before v1, a point after v2 and a coordinate belonging to [0.0, 1.0] that represents the x coordinate of the point between v1 and v2.
|
|
Converts degrees to radians.
|
|
Gives the differential coefficient of the interpolate curve given by CubicInterpolate(v0, v1, v2, v3, x) at the coordinate x belonging to [0.0, 1.0].
|
|
Converts radians to degrees.
|
|
Returns 1.0f, 0.0f or -1.0f depending on the value of f.
|
|
Returns 1, 0 or -1 depending on the value of i.
|
|
constant for converting degrees to radians
|
|
constant for converting radiant to degrees
|
|
Value of PI/2.
|
|
Value of PI.
|
|
Value of 2*PI.
|