Pyrogenesis  trunk
Macros | Functions
MathUtil.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEGTORAD(a)   ((a) * ((float)M_PI/180.0f))
 
#define RADTODEG(a)   ((a) * (180.0f/(float)M_PI))
 
#define SQR(x)   ((x) * (x))
 

Functions

template<typename T >
T Interpolate (const T &a, const T &b, float l)
 
template<typename T >
T clamp (T value, T min, T max)
 
float sgn (float a)
 

Macro Definition Documentation

#define DEGTORAD (   a)    ((a) * ((float)M_PI/180.0f))
#define RADTODEG (   a)    ((a) * (180.0f/(float)M_PI))
#define SQR (   x)    ((x) * (x))

Function Documentation

template<typename T >
T clamp ( T  value,
T  min,
T  max 
)
inline
template<typename T >
T Interpolate ( const T a,
const T b,
float  l 
)
inline
float sgn ( float  a)
inline