Program that converts geometric and animation 3D scene data, from a COLLADA "*.dae" file to a binary file, with a custom format.
#ifndef MATH_MACROS_H_
#define MATH_MACROS_H_
#include "./constants.h"
#include "./functions.h"
namespace math
{
//randoms
#define mRAND() fRAND()
#define mRANDF() fRANDF()
#define mRAND_RANGE(x,y) ((x) + (fRAND()%((y)-(x)+1)))
#define mRANDF_RANGE(x,y) (fRANDF()*(y-x)+ x)
//min/max
#define mMIN(a, b) (((a) < (b)) ? (a) : (b))
#define mMAX(a, b) (((a) > (b)) ? (b) : (a))
//used for swapping algorithm
#define mSWAP(a,b,t) {t=a; a=b; b=t;}
}
#endif