diff options
Diffstat (limited to 'Source/Core/Common/MathUtil.h')
| -rw-r--r-- | Source/Core/Common/MathUtil.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/Common/MathUtil.h b/Source/Core/Common/MathUtil.h index bc0162b9ee..01a39db5b1 100644 --- a/Source/Core/Common/MathUtil.h +++ b/Source/Core/Common/MathUtil.h @@ -17,6 +17,9 @@ namespace MathUtil { +constexpr double TAU = 6.2831853071795865; +constexpr double PI = TAU / 2; + template <class T> constexpr T Clamp(const T val, const T& min, const T& max) { |
