constrain(aNumber, aMin, aMax)
Constrains a value to not exceed a maximum and minimum value.
Type: function
Parameter(s):
- aNumber {Number}:
The value to constrain.
- aMin {Number}:
Minimum limit.
- aMax {Number}:
Maximum limit.
Returns:
-
{Number}:
The constrained value.