/*** * all the defines that are generaly useful */ #ifndef DEFINES_HEADER #ifndef PI #define PI 3.14159265358979323846 #endif #define sinf(x) (float)sin(x) #define cosf(x) (float)cos(x) #define sqrtf(x) (float)sqrt(x) #ifndef MIN #define MIN(a,b) (((a) < (b)) ? (a) : (b)) #endif #ifndef MAX #define MAX(a,b) (((a) > (b)) ? (a) : (b)) #endif #ifndef FLT_MAX #define FLT_MAX 3.402823466E+38F /* max decimal value of a "float" max value of an "int" 2147483647 */ #endif #ifndef FLT_MIN #define FLT_MIN 1.175494351E-38F /* min decimal value of a "float" min value of an "int" (-2147483647 - 1) */ #endif #endif //DEFINES_HEADER