
Simplifies transition to software based math libraries for projects requiring determinism.
22 lines
401 B
C
22 lines
401 B
C
#ifndef DETOURMATH_H
|
|
#define DETOURMATH_H
|
|
|
|
/**
|
|
@defgroup detour Detour
|
|
|
|
Members in this module are wrappers around the standard math library
|
|
|
|
*/
|
|
|
|
#include <math.h>
|
|
|
|
#define dtMathFabs(x) fabs(x)
|
|
#define dtMathSqrtf(x) sqrtf(x)
|
|
#define dtMathFloorf(x) floorf(x)
|
|
#define dtMathCeilf(x) ceilf(x)
|
|
#define dtMathCosf(x) cosf(x)
|
|
#define dtMathSinf(x) sinf(x)
|
|
#define dtMathAtan2f(y, x) atan2f(y, x)
|
|
|
|
#endif
|