freebsd-ports/games/glest/files/patch-source-shared_lib-include-graphics-math_util.h
William Grzybowski 45091479d9 games/glest: support stage [1]
- Use options sub
- Remove useless pre/post include
- Finish to convert to options ng

PR:		192565
Submitted by:	christian.mangin gmail com [1]
2014-08-11 13:34:39 +00:00

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
// =====================================================