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.h6
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
13static constexpr float PI = 3.14159265f; 12static constexpr float PI = 3.14159265f;
14 13
15inline 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
20template <class T> 14template <class T>
21struct Rectangle { 15struct Rectangle {
22 T left{}; 16 T left{};