23#ifndef Masala_src_numeric_api_utility_angles_angle_util_hh
24#define Masala_src_numeric_api_utility_angles_angle_util_hh
37 template <
typename T >
43 T
const fmod_result( std::fmod( angle_in, T(360) ) );
44 return (fmod_result < 0 ? fmod_result + T(360) : fmod_result);
51 template <
typename T >
T positive_angle_degrees(T angle_in)
Convert an angle, in degrees, to the equivalent angle, in degrees, in the range [0,...
T zero_centred_angle_degrees(T angle_in)
Convert an angle, in degrees, to the equivalent angle, in degrees, in the range [-180,...