mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-22 17:47:38 +08:00
Rename clamp to V_clamp.
This commit is contained in:
parent
e659cbdd05
commit
9bf97f4032
@ -602,7 +602,7 @@ template <class T> FORCEINLINE_TEMPLATE T AVG(T a, T b)
|
|||||||
//
|
//
|
||||||
// Returns a clamped value in the range [min, max].
|
// 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 )
|
inline float Sign( float x )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user