Click or drag to resize

MathHelperClamp(Int32, Int32, Int32) Method

Restricts a value to be within a specified range.

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

Parameters

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

Return Value

Int32
See Also