Click or drag to resize

MathHelperClampAngle Method (Single, Single, Single)

Loop an angle around within a -360° to +360° range and limit it between two values.

Respects from being larger than to.

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

Parameters

angle
Type: SystemSingle
from
Type: SystemSingle
to
Type: SystemSingle

Return Value

Type: Single
See Also