Method AngDist
AngDist(double, double)
Computes the minimal circular distance between two angles (degrees).
public static double AngDist(double a, double b)
Parameters
Returns
- double
The smallest absolute angular difference in degrees within [0, 180].
Examples
Angles.AngDist(350, 10) // 20
Angles.AngDist(0, 180) // 180
Remarks
The result accounts for wrap-around at 360°. For example, the distance between 350° and 10° is 20°.
- See Also