From 851b5922e64daea4904b002b49c855477a22edf5 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 1 Dec 2015 14:01:46 +0000 Subject: [PATCH] Remove templated clamp --- gb_math.hpp | 12 +----------- 1 file changed, 1 insertion(+), 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 -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 inline T lerp(const T& x, const T& y, f32 t) { return x + (y - x) * t; } } // namespace math