/// <summary> /// Restricts a number to be within a range.Also works for other ordered types such as Strings and Dates. /// <para /> /// sig: Ord a => a -> a -> a -> a /// </summary> /// <param name="minimum">The lower limit of the clamp (inclusive)</param> /// <param name="maximum">The upper limit of the clamp (inclusive)</param> /// <param name="value">Value to be clamped</param> /// <returns>Returns `minimum` when `val <![CDATA[<]]> minimum`, `maximum` when `val <![CDATA[>]]> maximum`, returns `val` otherwise</returns> public static dynamic Clamp(double minimum, RamdaPlaceholder maximum = null, RamdaPlaceholder value = null) { return(Currying.Clamp(minimum, maximum, value)); }
/// <summary> /// Restricts a number to be within a range.Also works for other ordered types such as Strings and Dates. /// <para /> /// sig: Ord a => a -> a -> a -> a /// </summary> /// <param name="minimum">The lower limit of the clamp (inclusive)</param> /// <param name="maximum">The upper limit of the clamp (inclusive)</param> /// <param name="value">Value to be clamped</param> /// <returns>Returns `minimum` when `val <![CDATA[<]]> minimum`, `maximum` when `val <![CDATA[>]]> maximum`, returns `val` otherwise</returns> public static dynamic Clamp(RamdaPlaceholder minimum, double maximum, double value) { return(Currying.Clamp(minimum, maximum, value)); }
/// <summary> /// Restricts a number to be within a range.Also works for other ordered types such as Strings and Dates. /// <para /> /// sig: Ord a => a -> a -> a -> a /// </summary> /// <param name="minimum">The lower limit of the clamp (inclusive)</param> /// <param name="maximum">The upper limit of the clamp (inclusive)</param> /// <param name="value">Value to be clamped</param> /// <returns>Returns `minimum` when `val <![CDATA[<]]> minimum`, `maximum` when `val <![CDATA[>]]> maximum`, returns `val` otherwise</returns> public static dynamic Clamp(char minimum, RamdaPlaceholder maximum, char value) { return(Currying.Clamp(minimum, maximum, value)); }
/// <summary> /// Restricts a number to be within a range.Also works for other ordered types such as Strings and Dates. /// <para /> /// sig: Ord a => a -> a -> a -> a /// </summary> /// <param name="minimum">The lower limit of the clamp (inclusive)</param> /// <param name="maximum">The upper limit of the clamp (inclusive)</param> /// <param name="value">Value to be clamped</param> /// <returns>Returns `minimum` when `val <![CDATA[<]]> minimum`, `maximum` when `val <![CDATA[>]]> maximum`, returns `val` otherwise</returns> public static dynamic Clamp(double minimum, double maximum, double value) { return(Currying.Clamp(minimum, maximum, value)); }
/// <summary> /// Restricts a number to be within a range.Also works for other ordered types such as Strings and Dates. /// <para /> /// sig: Ord a => a -> a -> a -> a /// </summary> /// <param name="minimum">The lower limit of the clamp (inclusive)</param> /// <param name="maximum">The upper limit of the clamp (inclusive)</param> /// <param name="value">Value to be clamped</param> /// <returns>Returns `minimum` when `val <![CDATA[<]]> minimum`, `maximum` when `val <![CDATA[>]]> maximum`, returns `val` otherwise</returns> public static dynamic Clamp(int minimum, int maximum, int value) { return(Currying.Clamp(minimum, maximum, value)); }