diff --git a/public/klein/util.hpp b/public/klein/util.hpp index 801d172..43a42e4 100644 --- a/public/klein/util.hpp +++ b/public/klein/util.hpp @@ -12,39 +12,39 @@ namespace kln { template -constexpr T pi_v = 3.141592653589793238462643383279502884L; +constexpr T pi_v = (T)3.141592653589793238462643383279502884L; constexpr float pi = pi_v; template -constexpr T pi_2_v = 1.570796326794896619231321691639751442L; +constexpr T pi_2_v = (T)1.570796326794896619231321691639751442L; constexpr float pi_2 = pi_2_v; template -constexpr T pi_4_v = 0.785398163397448309615660845819875721L; +constexpr T pi_4_v = (T)0.785398163397448309615660845819875721L; constexpr float pi_4 = pi_4_v; /// tau = 2 * pi template -constexpr T tau_v = 6.28318530717958647692528676655900577L; +constexpr T tau_v = (T)6.28318530717958647692528676655900577L; constexpr float tau = tau_v; template -constexpr T e_v = 2.718281828459045235360287471352662498L; +constexpr T e_v = (T)2.718281828459045235360287471352662498L; constexpr float e = e_v; template -constexpr T sqrt2_v = 1.414213562373095048801688724209698079L; +constexpr T sqrt2_v = (T)1.414213562373095048801688724209698079L; constexpr float sqrt2 = sqrt2_v; /// sqrt(2) / 2 = 1 / sqrt(2) template -constexpr T sqrt2_2_v = 0.707106781186547524400844362104849039L; +constexpr T sqrt2_2_v = (T)0.707106781186547524400844362104849039L; constexpr float sqrt2_2 = sqrt2_2_v; } // namespace kln \ No newline at end of file