MathUtility.Clamp method

Clamps the specified value between a minimum and maximum.

public static double Clamp(double fValue, double fMin, double fMax)
parameter description
fValue The value.
fMin The minimum allowed value.
fMax The maximum allowed value.

See Also