Click or drag to resize
Ab4d.SharpEngine logo

MathUtilsGetAngleDiff Method

Returned the smallest difference between two angles in degrees (result is in range between 0 and 180).

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
Syntax
C#
public static float GetAngleDiff(
	float angle1,
	float angle2
)

Parameters

angle1  Single
first angle in degrees
angle2  Single
second angle in degrees

Return Value

Single
the smallest difference between two angles in degrees (difference is always positive)
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.MathUtils.GetAngleDiff(System.Single,System.Single)"]

See Also