5#ifndef SAPPHIRE_MATHS_CONSTANTS_GUARD
6#define SAPPHIRE_MATHS_CONSTANTS_GUARD
23 template <
typename T =
double>
24 static constexpr T Pi = T{ 3.1415926535897932384 };
27 template <
typename T =
double>
28 static constexpr T PiX2 = T{ 2.0 } *Pi<T>;
31 template <
typename T =
double>
32 static constexpr T PiOv2 = Pi<T> / T{ 2.0 };
35 template <
typename T =
double>
36 static constexpr T PiOv3 = Pi<T> / T{ 3.0 };
40 static constexpr T PiOv4 = Pi<T> / T{ 4.0 };
43 template <
typename T =
double>
44 static constexpr T PiOv6 = Pi<T> / T{ 6.0 };
47 template <
typename T =
double>
48 static constexpr T DegToRad = Pi<T> / T{ 180.0 };
51 template <
typename T =
double>
52 static constexpr T RadToDeg = T{ 180.0 } / Pi<T>;