Click or drag to resize
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.Utils
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static bool IsWithinBoundsInclusive<T>(
	T value,
	T min,
	T max
)
where T : Object, 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