src/util/WWMath.js
function (value, minimum, maximum) {
                return value < minimum ? minimum : value > maximum ? maximum : value;
            }
function (value, minimum, maximum) {
                return value < minimum ? minimum : value > maximum ? maximum : value;
            }
function ( value , minimum , maximum ) { return value < minimum ? minimum : value > maximum ? maximum : value ; }
Returns a number within the range of a specified minimum and maximum.
@param {Number} value The value to clamp.
@param {Number} minimum The minimum value to return.
@param {Number} maximum The maximum value to return.
@returns {Number} The minimum value if the specified value is less than the minimum, the maximum value if
the specified value is greater than the maximum, otherwise the value specified is returned.
Returns a number within the range of a specified minimum and maximum .