static float AngleDist(float a, float b)

Calculates the minimum angle ‘distance’ between two angles. This covers wraparound cases like: the minimum distance between 10 and 350 is 20.

float a First angle, in degrees.
float b Second angle, in degrees.
RETURNS: float Degrees 0-180, the minimum angle between a and b.

Found an issue with these docs, or have some additional questions? Create an Issue on Github!