Click or drag to resize

MathHelperClamp(Single, Single, Single) Method

Restricts a value to be within a specified range.

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

Parameters

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

Return Value

Single
See Also