Click or drag to resize
Ab4d.SharpEngine logo

MathUtilsGetSignedAngleDiff Method

Returned the smallest difference between two angles in degrees (difference is positive if angle1 is bigger then angle2)

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static float GetSignedAngleDiff(
	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 positive if angle1 is bigger then angle2)
See Also