getShortestAngle(angle1, angle2) → {number}
Gets the shortest angle between angle1 and angle2.Both angles must be in the range -180 to 180, which is the same clampedrange that sprite.angle uses, so you can pass in two sprite angles tothis method, and get the shortest angle back between the two of them. The angle returned will be in the same range. If the returned angle isgreater than 0 then it's a counter-clockwise rotation, if < 0 then it'sa clockwise rotation.
Parameters
Name Type Descr