num.js
Methods
-
staticmodule:num.clamp(number, min, max){number}
-
Keep a number between a min and a max value
Name Type Description numbernumber The number to clamp
minnumber The minimum value
maxnumber The maximum value
Returns:
Type Description number the clamped number