Added a case where the sweep angle is greater than 360