Restricts a number to be within a specified range
The number to clamp
The minimum value
The maximum value
The clamped value, returns min if num is less than min, max if num is greater than max, otherwise returns num itself
Restricts a number to be within a specified range