diff options
| author | 2017-01-07 12:39:20 -0500 | |
|---|---|---|
| committer | 2017-01-07 12:39:20 -0500 | |
| commit | 7cfe3ef0463ace034b1e5786c9581cfa5f2e810c (patch) | |
| tree | 6b06cb03d276b29070ca29599fc4c5fcf77edb39 /src/common/math_util.h | |
| parent | Merge pull request #2410 from Subv/sleepthread (diff) | |
| parent | Frontend: make motion sensor interfaced thread-safe (diff) | |
| download | yuzu-7cfe3ef0463ace034b1e5786c9581cfa5f2e810c.tar.gz yuzu-7cfe3ef0463ace034b1e5786c9581cfa5f2e810c.tar.xz yuzu-7cfe3ef0463ace034b1e5786c9581cfa5f2e810c.zip | |
Merge pull request #1951 from wwylele/motion-sensor
Emulate motion sensor in frontend
Diffstat (limited to '')
| -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)); |