internal static float GetArc(float xCenter, float yCenter, float xDot, float yDot) { double s = Math.Atan2(yDot - yCenter, xDot - xCenter); if (s < 0) s += Math.PI * 2; return (float)(s / Math.PI * 180); }