Click or drag to resize
Ab4d.SharpEngine logo

CameraUtilsNormalizeAngleTo180 Method

Returns an angle that is normalized so that it is always in range from -180 to 180 degrees. For example 270 is converted into -90; -200 is converted into 160. To get an angle in range from 0 to 360, use the NormalizeAngleTo360(Single) method.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public static float NormalizeAngleTo180(
	float angleInDegrees
)

Parameters

angleInDegrees  Single
angle in degrees

Return Value

Single
normalized angle in interval between 0 and 360 degrees
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.CameraUtils.NormalizeAngleTo180(System.Single)"]

See Also