27 constexpr
double PI = 3.1415926535897932384626433832795028;
78 constexpr
double to_radians(
double angle_in_degrees) noexcept {
return angle_in_degrees *
PI / 180.0; }
93 constexpr
double to_degrees(
double angle_in_radians) noexcept {
return angle_in_radians * 180.0 /
PI; }
constexpr double to_radians(double angle_in_degrees) noexcept
Converts a degree measurement to its corresponding value in radians. Radians and degrees are two ways...
constexpr double QUARTER_PI
constexpr double to_degrees(double angle_in_radians) noexcept
Converts a radian measurement to its corresponding value in degrees. Radians and degrees are two ways...