static double rotationDirection(double from, double to) => sanitizeDegreesDouble(to - from) <= 180.0 ? 1.0 : -1.0;