Defines | |
#define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
#define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
#define | TRUE 1 |
#define | FALSE 0 |
#define | CLAMP(v, min, max) MIN(MAX(v, min), max) |
#define | PI 3.141592653589f |
#define | EPSILON 1E-6 |
#define | EQUALF(a, b) (fabs((a) - (b)) < EPSILON) |
#define | RAD2DEG(a) ((a) * (180.0f / PI)) |
#define | DEG2RAD(a) ((a) * (PI / 180.0f)) |
#define CLAMP | ( | v, | |||
min, | |||||
max | ) | MIN(MAX(v, min), max) |
#define DEG2RAD | ( | a | ) | ((a) * (PI / 180.0f)) |
#define EPSILON 1E-6 |
#define EQUALF | ( | a, | |||
b | ) | (fabs((a) - (b)) < EPSILON) |
#define FALSE 0 |
#define MAX | ( | a, | |||
b | ) | ((a) > (b) ? (a) : (b)) |
#define MIN | ( | a, | |||
b | ) | ((a) < (b) ? (a) : (b)) |
#define PI 3.141592653589f |
#define RAD2DEG | ( | a | ) | ((a) * (180.0f / PI)) |
#define TRUE 1 |