Namespace
The value to clamp.
The minimum value of the range.
The maximum value of the range.
The clamped value.
const clampedValue = clamp(15, 0, 10);
console.log(clampedValue); // Output: 10 (since 15 is greater than the max value of 10)
Generated using TypeDoc
MathUtils
Clamp a value within a specified range.