 | MathUtilsIsWithinBoundsInclusiveT Method |
Checks if the specified value is within the specified bounds (i.e. bigger or equal minimum bound and
smaller or equal maximum bound).
Namespace: Slash.Math.UtilsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static bool IsWithinBoundsInclusive<T>(
T value,
T min,
T max
)
where T : Object, IComparable<T>
Public Shared Function IsWithinBoundsInclusive(Of T As {Object, IComparable(Of T)}) (
value As T,
min As T,
max As T
) As Boolean
public:
generic<typename T>
where T : Object, IComparable<T>
static bool IsWithinBoundsInclusive(
T value,
T min,
T max
)
static member IsWithinBoundsInclusive :
value : 'T *
min : 'T *
max : 'T -> bool when 'T : Object and IComparable<'T>
Parameters
- value
- Type: T
Value to check. - min
- Type: T
Minimum bound. - max
- Type: T
Maximum bound (inclusive).
Type Parameters
- T
- Type of the value to check.
Return Value
Type:
Boolean True if value is within bounds; otherwise, false.
See Also