Click or drag to resize

MathHelperClamp Method (Int32, Int32, Int32)

Limits a number between two other numbers.

Respects from being larger than to.

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

Parameters

value
Type: SystemInt32
from
Type: SystemInt32
to
Type: SystemInt32

Return Value

Type: Int32
See Also