summaryrefslogtreecommitdiff
path: root/Source/Core/Common/MathUtil.h
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2018-12-28 06:18:56 -0500
committerGitHub <noreply@github.com>2018-12-28 06:18:56 -0500
commitde03019c77691f4d596d5d9b0d67bcceefa8ce9d (patch)
tree0ad62c370609b92c2a664ae172c6b8a0ad5eab14 /Source/Core/Common/MathUtil.h
parentf006af441e87f0331ea39d38082a0a52a9b86277 (diff)
parentc614f5f534cdb7a083387505aff90e8be94fed73 (diff)
Merge pull request #7628 from jordan-woyak/stick-shapes
ControllerEmu: Add ability to reshape analog sticks. Make the mapping indicator pretty.
Diffstat (limited to 'Source/Core/Common/MathUtil.h')
-rw-r--r--Source/Core/Common/MathUtil.h3
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)
{