Click or drag to resize

MathHelperClamp Method (Int32, Int32, Int32)

Restricts a value to be within a specified range.

Namespace:  Ozeki.Common
Assembly:  OzekiSDK (in OzekiSDK.dll) Version: 10.3.183.0
Syntax
public static int Clamp(
	int value,
	int minValue,
	int maxValue
)

Parameters

value
Type: SystemInt32
The value to clamp.
minValue
Type: SystemInt32
The minimum value. If the value is less than minValue the minValue will be used.
maxValue
Type: SystemInt32
The minimum value. If the value is greater than maxValue the maxValue will be used.

Return Value

Type: Int32
See Also