IntConversionExtensions extension

on

Methods

limitMax(int maxValue) int

Available on int, provided by the IntConversionExtensions extension

Determines the maximum limitation of two values.
limitMin(int minValue) int

Available on int, provided by the IntConversionExtensions extension

Determines the minimum limitation of two values.
limitWithin(int minValue, int maxValue) int

Available on int, provided by the IntConversionExtensions extension

Determines the minimum and maximum limitation of two values. If this value is between {minValue} and {maxValue}, this value is returned. If this value is smaller than {minvalue}, {minvalue} is returned. If this value is greater than {maxvalue}, {maxvalue} is returned.