| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
#ifndef DETOURMATH_H |
| 8 |
#define DETOURMATH_H |
| 9 |
|
| 10 |
#include <math.h> |
| 11 |
|
| 12 |
inline float dtMathFabsf(float x) { return fabsf(x); } |
| 13 |
inline float dtMathSqrtf(float x) { return sqrtf(x); } |
| 14 |
inline float dtMathFloorf(float x) { return floorf(x); } |
| 15 |
inline float dtMathCeilf(float x) { return ceilf(x); } |
| 16 |
inline float dtMathCosf(float x) { return cosf(x); } |
| 17 |
inline float dtMathSinf(float x) { return sinf(x); } |
| 18 |
inline float dtMathAtan2f(float y, float x) { return atan2f(y, x); } |
| 19 |
inline bool dtMathIsfinite(float x) { return isfinite(x); } |
| 20 |
|
| 21 |
#endif |