ComparableExtensions

Static Class in Zigurous.Math

Declaration

public static class ComparableExtensions

Description

Extension methods for IComparable.

Extension Methods

IsBetween<T>Checks if the value is between a min and max value.
IsBetweenInclusive<T>Checks if the value is in the range [min..max].
IsBetweenInclusiveExclusive<T>Checks if the value is in the range [min..max).
IsBetweenExclusive<T>Checks if the value is in the range (min..max).
IsBetweenExclusiveInclusive<T>Checks if the value is in the range (min..max].
Max<T>Returns the maximum value in the array.
Min<T>Returns the minimum value in the array.