Declaration
public static double Clip(
    this double value,
    double minimumValue,
    double maximumValue
)Summary
                Clips this value to the range defined by 
minimumValue and 
maximumValue. The
                returned number will be no less than the minimum value and no greater than the maximum value. Throws an exception
                if min value is greater than the max value.