
Some checks failed
Build / macOS-premake (Debug) (push) Has been cancelled
Build / macOS-premake (Release) (push) Has been cancelled
Build / macos-cmake (Debug) (push) Has been cancelled
Build / macos-cmake (Release) (push) Has been cancelled
Build / linux-premake (clang, debug) (push) Has been cancelled
Build / linux-premake (clang, release) (push) Has been cancelled
Build / linux-premake (gcc, debug) (push) Has been cancelled
Build / linux-premake (gcc, release) (push) Has been cancelled
Build / linux-cmake (Debug) (push) Has been cancelled
Build / linux-cmake (Release) (push) Has been cancelled
Build / windows-premake (Debug, windows-2019, 16.0, vs2019) (push) Has been cancelled
Build / windows-premake (Debug, windows-2022, 17.0, vs2022) (push) Has been cancelled
Build / windows-premake (Release, windows-2019, 16.0, vs2019) (push) Has been cancelled
Build / windows-premake (Release, windows-2022, 17.0, vs2022) (push) Has been cancelled
Build / windows-cmake (Visual Studio 16 2019, Debug, windows-2019, vs2019) (push) Has been cancelled
Build / windows-cmake (Visual Studio 16 2019, Release, windows-2019, vs2019) (push) Has been cancelled
Build / windows-cmake (Visual Studio 17 2022, Debug, windows-2022, vs2022) (push) Has been cancelled
Build / windows-cmake (Visual Studio 17 2022, Release, windows-2022, vs2022) (push) Has been cancelled
Tests / macos-tests (push) Has been cancelled
Tests / linux-tests (push) Has been cancelled
Tests / windows-tests (push) Has been cancelled
25 lines
763 B
C++
25 lines
763 B
C++
/**
|
|
@defgroup detour Detour
|
|
|
|
Members in this module are wrappers around the standard math library
|
|
*/
|
|
|
|
#ifndef DETOURMATH_H
|
|
#define DETOURMATH_H
|
|
|
|
#include <math.h>
|
|
// This include is required because libstdc++ has problems with isfinite
|
|
// if cmath is included before math.h.
|
|
#include <cmath>
|
|
|
|
inline float dtMathFabsf(float x) { return fabsf(x); }
|
|
inline float dtMathSqrtf(float x) { return sqrtf(x); }
|
|
inline float dtMathFloorf(float x) { return floorf(x); }
|
|
inline float dtMathCeilf(float x) { return ceilf(x); }
|
|
inline float dtMathCosf(float x) { return cosf(x); }
|
|
inline float dtMathSinf(float x) { return sinf(x); }
|
|
inline float dtMathAtan2f(float y, float x) { return atan2f(y, x); }
|
|
inline bool dtMathIsfinite(float x) { return std::isfinite(x); }
|
|
|
|
#endif
|