getShortestAngle function

double getShortestAngle(
  1. double from,
  2. double to
)

Implementation

double getShortestAngle(double from, double to) {
  return wrap(to - from, -180, 180);
}