Recast Navigation
Navigation-mesh Toolset for Games
DetourMath.h
Go to the documentation of this file.
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 
15 inline float dtMathFabsf(float x) { return fabsf(x); }
16 inline float dtMathSqrtf(float x) { return sqrtf(x); }
17 inline float dtMathFloorf(float x) { return floorf(x); }
18 inline float dtMathCeilf(float x) { return ceilf(x); }
19 inline float dtMathCosf(float x) { return cosf(x); }
20 inline float dtMathSinf(float x) { return sinf(x); }
21 inline float dtMathAtan2f(float y, float x) { return atan2f(y, x); }
22 inline bool dtMathIsfinite(float x) { return std::isfinite(x); }
23 
24 #endif
float dtMathAtan2f(float y, float x)
Definition: DetourMath.h:21
float dtMathFabsf(float x)
Definition: DetourMath.h:15
float dtMathFloorf(float x)
Definition: DetourMath.h:17
float dtMathSinf(float x)
Definition: DetourMath.h:20
float dtMathSqrtf(float x)
Definition: DetourMath.h:16
float dtMathCeilf(float x)
Definition: DetourMath.h:18
bool dtMathIsfinite(float x)
Definition: DetourMath.h:22
float dtMathCosf(float x)
Definition: DetourMath.h:19