Click or drag to resize
MathHelperClamp Method (Single, Single, Single)
Restricts a value to be within a specified range.

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

Parameters

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

Return Value

Type: Single
See Also