diff options
author | wwylele <wwylele@gmail.com> | 2016-12-11 22:27:30 +0100 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2016-12-26 09:41:26 +0100 |
commit | 55f5d0f7770ea625e283aa7878340fc80a70cfd7 (patch) | |
tree | 6aedc66fcaa4760817b5621e905a40ae0a8c5d54 /src | |
parent | Common::Event: add WaitUntil (diff) | |
download | yuzu-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')
-rw-r--r-- | src/common/math_util.h | 2 |
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)); |