 | MathUtilsIsWithinBoundsT Method |
Checks if the passed value is within the passed bounds (i.e. bigger or equal minimum bound and
smaller maximum bound).
Namespace: Slash.Math.UtilsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic static bool IsWithinBounds<T>(
T value,
T min,
T max
)
where T : Object, IComparable<T>
Public Shared Function IsWithinBounds(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 IsWithinBounds(
T value,
T min,
T max
)
static member IsWithinBounds :
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 (exclusive).
Type Parameters
- T
- Type of the value to check.
Return Value
Type:
Boolean True if value is within bounds; otherwise, false.
See Also