7 #define M_PI 3.14159265358979323846
10 constexpr inline float Deg2Rad(float x
) noexcept
{ return x
* static_cast<float>(M_PI
/180.0); }
11 constexpr inline float Rad2Deg(float x
) noexcept
{ return x
* static_cast<float>(180.0/M_PI
); }
15 template<typename Real
>
19 struct MathDefs
<float> {
20 static constexpr inline float Pi() noexcept
{ return static_cast<float>(M_PI
); }
21 static constexpr inline float Tau() noexcept
{ return static_cast<float>(M_PI
* 2.0); }
25 struct MathDefs
<double> {
26 static constexpr inline double Pi() noexcept
{ return M_PI
; }
27 static constexpr inline double Tau() noexcept
{ return M_PI
* 2.0; }
32 #endif /* AL_MATH_DEFS_H */