Click or drag to resize
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.Utils
Assembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntax
public static bool IsWithinBounds<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 (exclusive).

Type Parameters

T
Type of the value to check.

Return Value

Type: Boolean
True if value is within bounds; otherwise, false.
See Also