MathUtilClampT Method (T, T, T) | |
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.99.0.0
Syntax public static T Clamp<T>(
T value,
T min,
T max
)
where T : Object, IComparable<T>
Public Shared Function Clamp(Of T As {Object, IComparable(Of T)}) (
value As T,
min As T,
max As T
) As 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:
TThe value constrained to the supplied range.
See Also