summaryrefslogtreecommitdiffstats
path: root/src/common/math_util.h
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2016-12-11 22:27:30 +0100
committerwwylele <wwylele@gmail.com>2016-12-26 09:41:26 +0100
commit55f5d0f7770ea625e283aa7878340fc80a70cfd7 (patch)
tree6aedc66fcaa4760817b5621e905a40ae0a8c5d54 /src/common/math_util.h
parentCommon::Event: add WaitUntil (diff)
downloadyuzu-55f5d0f7770ea625e283aa7878340fc80a70cfd7.tar
yuzu-55f5d0f7770ea625e283aa7878340fc80a70cfd7.tar.gz
yuzu-55f5d0f7770ea625e283aa7878340fc80a70cfd7.tar.bz2
yuzu-55f5d0f7770ea625e283aa7878340fc80a70cfd7.tar.lz
yuzu-55f5d0f7770ea625e283aa7878340fc80a70cfd7.tar.xz
yuzu-55f5d0f7770ea625e283aa7878340fc80a70cfd7.tar.zst
yuzu-55f5d0f7770ea625e283aa7878340fc80a70cfd7.zip
Diffstat (limited to 'src/common/math_util.h')
-rw-r--r--src/common/math_util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/math_util.h b/src/common/math_util.h
index cdeaeb733..45a1ed367 100644
--- a/src/common/math_util.h
+++ b/src/common/math_util.h
@@ -10,6 +10,8 @@
namespace MathUtil {
+static constexpr float PI = 3.14159265f;
+
inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start1,
unsigned length1) {
return (std::max(start0, start1) < std::min(start0 + length0, start1 + length1));