aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar gingerBill 2015-12-01 14:01:46 +0000
committerGravatar gingerBill 2015-12-01 14:01:46 +0000
commit851b5922e64daea4904b002b49c855477a22edf5 (patch)
tree1dc0cfb3ddfbb20541430a72a2eaa1c87d3054bf
parentDealloc to Free & More Hashing Functions (diff)
Remove templated clamp
-rw-r--r--gb_math.hpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/gb_math.hpp b/gb_math.hpp
index 0f4cd8a..c11bbaa 100644
--- a/gb_math.hpp
+++ b/gb_math.hpp
@@ -4,6 +4,7 @@
/*
Version History:
+ 0.03a - Remove templated clamp
0.03 - Remove templated min/max/clamp
0.02b - Typo fixes
0.02a - Better `static` keywords
@@ -1153,17 +1154,6 @@ f32 perlin_3d(f32 x, f32 y, f32 z, s32 x_wrap = 0, s32 y_wrap = 0, s32 z_wrap =
namespace math
{
-template <typename T>
-inline T
-clamp(const T& x, const T& min, const T& max)
-{
- if (x < min)
- return min;
- if (x > max)
- return max;
- return x;
-}
-
template <typename T> inline T lerp(const T& x, const T& y, f32 t) { return x + (y - x) * t; }
} // namespace math