RavEngine
Loading...
Searching...
No Matches
DetourMath.h
1
7#ifndef DETOURMATH_H
8#define DETOURMATH_H
9
10#include <math.h>
11// This include is required because libstdc++ has problems with isfinite
12// if cmath is included before math.h.
13#include <cmath>
14
15inline float dtMathFabsf(float x) { return fabsf(x); }
16inline float dtMathSqrtf(float x) { return sqrtf(x); }
17inline float dtMathFloorf(float x) { return floorf(x); }
18inline float dtMathCeilf(float x) { return ceilf(x); }
19inline float dtMathCosf(float x) { return cosf(x); }
20inline float dtMathSinf(float x) { return sinf(x); }
21inline float dtMathAtan2f(float y, float x) { return atan2f(y, x); }
22inline bool dtMathIsfinite(float x) { return std::isfinite(x); }
23
24#endif