Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Moteur3D::Math Class Reference

The Math class is a placeholder for general math functions. More...

#include <Math.h>

List of all members.

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


Detailed Description

The Math class is a placeholder for general math functions.


Constructor & Destructor Documentation

Moteur3D::Math::Math  )  [private]
 

Constructor. Is private to prevent instanciation.


Member Function Documentation

static float Moteur3D::Math::CubicInterpolate float  v0,
float  v1,
float  v2,
float  v3,
float  x
[static]
 

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 Moteur3D::Math::Deg2Rad float  degrees  )  [inline, static]
 

Converts degrees to radians.

static float Moteur3D::Math::DiffCubicInterpolate float  v0,
float  v1,
float  v2,
float  v3,
float  x
[static]
 

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 float Moteur3D::Math::Rad2Deg float  radians  )  [inline, static]
 

Converts radians to degrees.

static float Moteur3D::Math::Sign float  f  )  [inline, static]
 

Returns 1.0f, 0.0f or -1.0f depending on the value of f.

Parameters:
f float to get sign from
Returns:
"sign" of f

static int Moteur3D::Math::Sign int  i  )  [inline, static]
 

Returns 1, 0 or -1 depending on the value of i.

Parameters:
i integer to get sign from
Returns:
"sign" of i


Member Data Documentation

const float Moteur3D::Math::cDeg2Rad [static, private]
 

constant for converting degrees to radians

const float Moteur3D::Math::cRad2Deg [static, private]
 

constant for converting radiant to degrees

const float Moteur3D::Math::HalfPI [static]
 

Value of PI/2.

const float Moteur3D::Math::PI [static]
 

Value of PI.

const float Moteur3D::Math::PI2 [static]
 

Value of 2*PI.


The documentation for this class was generated from the following file:
Generated on Sat Oct 15 15:05:51 2005 for Moteur3D by  doxygen 1.4.4