From 3520584109dc45b7b8e17f90ab886a6b23fa4844 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 18 Oct 2022 14:33:10 -0400 Subject: [PATCH] add constant for 2^(1/6) --- src/math_const.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/math_const.h b/src/math_const.h index 1a6b5c3b47..4714503c69 100644 --- a/src/math_const.h +++ b/src/math_const.h @@ -30,7 +30,8 @@ namespace MathConst { static constexpr double MY_ISPI4 = 1.12837916709551257389; // 1/sqrt(pi/4) static constexpr double MY_SQRT2 = 1.41421356237309504880; // sqrt(2) static constexpr double MY_ISQRT2 = 0.707106781186547524401; // 1/sqrt(2) - static constexpr double MY_CUBEROOT2 = 1.25992104989487316476; // 2*(1/3) + static constexpr double MY_CUBEROOT2 = 1.25992104989487316476; // 2^(1/3) + static constexpr double MY_TWOBYSIXTH = 1.12246204830937298142; // 2^(1/6) // static constexpr double DEG2RAD = MY_PI / 180.0; // degree to radians static constexpr double RAD2DEG = 180.0 / MY_PI; // radians to degree } // namespace MathConst