angleShortestDistance static method

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

Implementation

static double angleShortestDistance(double from, double to) {
  return ((to - from) + 180) % 360 - 180;
}