forked from Lainports/freebsd-ports
- Use options sub - Remove useless pre/post include - Finish to convert to options ng PR: 192565 Submitted by: christian.mangin gmail com [1]
19 lines
581 B
C
19 lines
581 B
C
--- ./source/shared_lib/include/graphics/math_util.h.bak 2014-08-10 15:21:32.000000000 -0400
|
|
+++ ./source/shared_lib/include/graphics/math_util.h 2014-08-10 15:23:08.000000000 -0400
|
|
@@ -23,6 +23,16 @@
|
|
const float zero= 1e-6f;
|
|
const float infinity= 1e6f;
|
|
|
|
+template <typename T>
|
|
+inline T max(const T& a, const T& b) {
|
|
+ return (b > a) ? b : a;
|
|
+}
|
|
+
|
|
+template <typename T>
|
|
+inline T min(const T& a, const T& b) {
|
|
+ return (b < a) ? b : a;
|
|
+}
|
|
+
|
|
// =====================================================
|
|
// class Rect
|
|
// =====================================================
|