Click or drag to resize

MathUtilClampT Method (T, T, T)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Limits a value to a range.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.98.0.0
Syntax
public static T Clamp<T>(
	T value,
	T min,
	T max
)
where T : Object, IComparable<T>

Parameters

value
Type: T
The input value.
min
Type: T
Minimum of the allowed range.
max
Type: T
Maximum of the allowed range.

Type Parameters

T
The type of the value.

Return Value

Type: T
The value constrained to the supplied range.
See Also