Force a value within the boundaries by clamping it to the range min
, max
.
name | type | description |
---|---|---|
value | number |
The value to be clamped. |
min | number |
The minimum bounds. |
max | number |
The maximum bounds. |
The clamped value.