diff options
author | Chris Robinson <[email protected]> | 2022-01-27 02:59:07 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-01-27 02:59:07 -0800 |
commit | f8ac1ffe805b13c8b1cd2bc4d4a8362cbe1c2cbe (patch) | |
tree | a8a24a3e85f7a8f00cf3947da37e97ab0f42d3f6 /common/alnumbers.h | |
parent | 1bbea9cd3060ef65a2623f156b4f12ebf62c52fe (diff) |
Get rid of MathDefs
Diffstat (limited to 'common/alnumbers.h')
-rw-r--r-- | common/alnumbers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/alnumbers.h b/common/alnumbers.h index 98994b44..37a55410 100644 --- a/common/alnumbers.h +++ b/common/alnumbers.h @@ -19,10 +19,14 @@ template<typename T> static constexpr auto inv_pi_v = detail_::as_fp<T>(0.318309886183790671537767526745028724L); template<typename T> +static constexpr auto sqrt2_v = detail_::as_fp<T>(1.414213562373095048801688724209698079L); + +template<typename T> static constexpr auto sqrt3_v = detail_::as_fp<T>(1.732050807568877293527446341505872367L); static constexpr auto pi = pi_v<double>; static constexpr auto inv_pi = inv_pi_v<double>; +static constexpr auto sqrt2 = sqrt2_v<double>; static constexpr auto sqrt3 = sqrt3_v<double>; } // namespace numbers |