Click or drag to resize
AB4D logo

MathUtilsGetAngleDiff Method

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

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static double GetAngleDiff(
	double angle1,
	double angle2
)

Parameters

angle1  Double
first angle in degrees
angle2  Double
second angle in degrees

Return Value

Double
the smallest difference between two angles in degrees (difference is always positive)
See Also