From 9bf97f40326387b59081e63c387ad9322c6b1a38 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 19 Oct 2023 20:45:16 -0700 Subject: [PATCH] Rename clamp to V_clamp. --- public/mathlib/math_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/mathlib/math_base.h b/public/mathlib/math_base.h index d4356d50..75a9460e 100644 --- a/public/mathlib/math_base.h +++ b/public/mathlib/math_base.h @@ -602,7 +602,7 @@ template FORCEINLINE_TEMPLATE T AVG(T a, T b) // // Returns a clamped value in the range [min, max]. // -#define clamp(val, min, max) (((val) > (max)) ? (max) : (((val) < (min)) ? (min) : (val))) +#define V_clamp(val, min, max) (((val) > (max)) ? (max) : (((val) < (min)) ? (min) : (val))) inline float Sign( float x ) {