Clamps the value to min or max if value is less than min or greater than max.
Value to clamp
Minimum value (Default: 0)
Maximum value (Default: 1)
Clamped value
clamp(8, 3, 7); // Returns: 7 Copy
clamp(8, 3, 7); // Returns: 7
Generated using TypeDoc
Clamps the value to min or max if value is less than min or greater than max.