Go to the source code of this file.
|
#define | DEGTORAD(a) ((a) * ((float)M_PI/180.0f)) |
|
#define | RADTODEG(a) ((a) * (180.0f/(float)M_PI)) |
|
#define | SQR(x) ((x) * (x)) |
|
|
template<typename T > |
T | Interpolate (const T &a, const T &b, float t) |
|
template<typename T > |
T | Clamp (T value, T min, T max) |
|
template<typename T > |
T | SmoothStep (T edge0, T edge1, T value) |
|
template<typename T > |
T | Sign (const T value) |
|
◆ DEGTORAD
#define DEGTORAD |
( |
|
a | ) |
((a) * ((float)M_PI/180.0f)) |
◆ RADTODEG
#define RADTODEG |
( |
|
a | ) |
((a) * (180.0f/(float)M_PI)) |
◆ SQR
#define SQR |
( |
|
x | ) |
((x) * (x)) |
◆ Clamp()
template<typename T >
T Clamp |
( |
T |
value, |
|
|
T |
min, |
|
|
T |
max |
|
) |
| |
|
inline |
◆ Interpolate()
template<typename T >
T Interpolate |
( |
const T & |
a, |
|
|
const T & |
b, |
|
|
float |
t |
|
) |
| |
|
inline |
◆ Sign()
◆ SmoothStep()
template<typename T >
T SmoothStep |
( |
T |
edge0, |
|
|
T |
edge1, |
|
|
T |
value |
|
) |
| |
|
inline |