diff options
Diffstat (limited to 'src/common/math_util.h')
| -rw-r--r-- | src/common/math_util.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/common/math_util.h b/src/common/math_util.h index 343cdd902..b553d47dd 100644 --- a/src/common/math_util.h +++ b/src/common/math_util.h | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <algorithm> | ||
| 8 | #include <cstdlib> | 7 | #include <cstdlib> |
| 9 | #include <type_traits> | 8 | #include <type_traits> |
| 10 | 9 | ||
| @@ -12,11 +11,6 @@ namespace MathUtil { | |||
| 12 | 11 | ||
| 13 | static constexpr float PI = 3.14159265f; | 12 | static constexpr float PI = 3.14159265f; |
| 14 | 13 | ||
| 15 | inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start1, | ||
| 16 | unsigned length1) { | ||
| 17 | return (std::max(start0, start1) < std::min(start0 + length0, start1 + length1)); | ||
| 18 | } | ||
| 19 | |||
| 20 | template <class T> | 14 | template <class T> |
| 21 | struct Rectangle { | 15 | struct Rectangle { |
| 22 | T left{}; | 16 | T left{}; |