summaryrefslogtreecommitdiff
path: root/src/common/math_util.h
diff options
context:
space:
mode:
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 @@
10 10
11namespace MathUtil { 11namespace MathUtil {
12 12
13static constexpr float PI = 3.14159265f;
14
13inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start1, 15inline 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));