clamp
This clamps down a value to between the lower and upper bounds inclusive.
Return
returns the clamped number.
Parameters
num
the number to be clamped.
lower
the lower bound.
upper
the upper bound.
This clamps down a value to between the lower and upper bounds inclusive.
returns the clamped number.
the number to be clamped.
the lower bound.
the upper bound.