mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-05-20 13:46:37 +01: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))
|