/* Float.h */

#ifndef _FLOAT_H_
#define _FLOAT_H_

/* two numbers are considered equal if they differ less than EPSILON */
#define EPSILON	1e-6
#define FLOATEQUAL(a, b)	((a-b) > -EPSILON && (a-b) < EPSILON)

#define MAX(a, b)		(a > b ? a : b)

#ifndef HUGE
#define HUGE 1e72
#endif /*HUGE*/

/* change to double if you want formfactors, radiances ... in double precision */
#define Float float

#endif /*_FLOAT_H_*/
