Click or drag to resize

MathHelperClamp Method (Single, Single, Single)

Limits a number between two other numbers.

Namespace:  Kit
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
public static float Clamp(
	float value,
	float from,
	float to
)
Request Example View Source

Parameters

value
Type: SystemSingle
from
Type: SystemSingle
to
Type: SystemSingle

Return Value

Type: Single
See Also