clamp
Public Function
Clamp a value into a range.
Example
const A = clamp(0, 1) // 1
Parameters
Name | Description |
---|---|
|
The number to clamp. |
|
The minimum value. |
Returns
number
Public Function
Clamp a value into a range.
const A = clamp(0, 1) // 1
Name | Description |
---|---|
|
The number to clamp. |
|
The minimum value. |
number