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: 9.5.7760.1045
Syntax
C#
public static double GetAngleDiff(
	double angle1,
	double angle2
)

Parameters

angle1
Type: SystemDouble
first angle in degrees
angle2
Type: SystemDouble
second angle in degrees

Return Value

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