diff options
| author | 2016-12-11 23:27:30 +0200 | |
|---|---|---|
| committer | 2016-12-26 10:41:26 +0200 | |
| commit | 55f5d0f7770ea625e283aa7878340fc80a70cfd7 (patch) | |
| tree | 6aedc66fcaa4760817b5621e905a40ae0a8c5d54 /src | |
| parent | Common::Event: add WaitUntil (diff) | |
| download | yuzu-55f5d0f7770ea625e283aa7878340fc80a70cfd7.tar.gz yuzu-55f5d0f7770ea625e283aa7878340fc80a70cfd7.tar.xz yuzu-55f5d0f7770ea625e283aa7878340fc80a70cfd7.zip | |
MathUtil: add PI constant
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 @@ | |||
| 10 | 10 | ||
| 11 | namespace MathUtil { | 11 | namespace MathUtil { |
| 12 | 12 | ||
| 13 | static constexpr float PI = 3.14159265f; | ||
| 14 | |||
| 13 | inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start1, | 15 | inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start1, |
| 14 | unsigned length1) { | 16 | unsigned length1) { |
| 15 | return (std::max(start0, start1) < std::min(start0 + length0, start1 + length1)); | 17 | return (std::max(start0, start1) < std::min(start0 + length0, start1 + length1)); |