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.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/common/math_util.h b/src/common/math_util.h
index 45a1ed367..c6a83c953 100644
--- a/src/common/math_util.h
+++ b/src/common/math_util.h
@@ -17,11 +17,6 @@ inline bool IntervalsIntersect(unsigned start0, unsigned length0, unsigned start
17 return (std::max(start0, start1) < std::min(start0 + length0, start1 + length1)); 17 return (std::max(start0, start1) < std::min(start0 + length0, start1 + length1));
18} 18}
19 19
20template <typename T>
21inline T Clamp(const T val, const T& min, const T& max) {
22 return std::max(min, std::min(max, val));
23}
24
25template <class T> 20template <class T>
26struct Rectangle { 21struct Rectangle {
27 T left; 22 T left;