Clamp a number between a min and a max.
min if num < min, max if num > max, num else
min
num < min
max
num > max
num
the number to clamp
the minimum value
the maximum value
Generated using TypeDoc
Clamp a number between a min and a max.
Returns
min
ifnum < min
,max
ifnum > max
,num
else