DetourMath.h 401 B

123456789101112131415161718192021
  1. #ifndef DETOURMATH_H
  2. #define DETOURMATH_H
  3. /**
  4. @defgroup detour Detour
  5. Members in this module are wrappers around the standard math library
  6. */
  7. #include <math.h>
  8. #define dtMathFabs(x) fabs(x)
  9. #define dtMathSqrtf(x) sqrtf(x)
  10. #define dtMathFloorf(x) floorf(x)
  11. #define dtMathCeilf(x) ceilf(x)
  12. #define dtMathCosf(x) cosf(x)
  13. #define dtMathSinf(x) sinf(x)
  14. #define dtMathAtan2f(y, x) atan2f(y, x)
  15. #endif