mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
3 lines
96 B
Plaintext
3 lines
96 B
Plaintext
#define Clamp(x, y, z) (x <= y ? y : (x >= z ? z : x))
|
|
#define CLAMP01(x) (Clamp(x, 0, 1))
|