DetourMath.h 569 B

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