iterami/Docs.htm/common HTM Repos/math.js/math_clamp(args)
- Clamps a number between two values and returns it.
- If out of bounds, either sets it to closest bound or loops to opposite bound as many times as needed.
| max
|
| number
|
| min
|
| number
|
| value
|
| number
|
| wrap
| false
| boolean
|