7#include <AH/STL/type_traits>
15constexpr long double pi_inv_l = 0.318309886183790671537767526745028724L;
16constexpr long double pi_l = 3.141592653589793238462643383279502884L;
25 typename std::enable_if<std::is_floating_point<T>::value, T>::type
32 typename std::enable_if<std::is_floating_point<T>::value, T>::type
38constexpr long double operator"" _deg(
long double deg) {
return deg2rad(deg); }
40constexpr long double operator"" _deg(
unsigned long long deg) {
41 return deg2rad(
static_cast<long double>(deg));
#define BEGIN_AH_NAMESPACE
#define AH_DIAGNOSTIC_POP()
#define AH_DIAGNOSTIC_WERROR()
constexpr std::enable_if< std::is_floating_point< T >::value, T >::type rad2deg(T r)
Convert radians to degrees.
constexpr std::enable_if< std::is_floating_point< T >::value, T >::type deg2rad(T d)
Convert degrees to radians.
constexpr long double pi_l
constexpr long double pi_inv_l