0
$\begingroup$

Given two angles (the starts and end of an arc), e.g. 90 degrees to 180 degrees, I need to output the starting and ending degrees of a small arc, and a large arc.

In this case the small arc is simply 90 to 180 (no change needed). The large arc would be 90 to -180.

Another example:

45degrees -> 270degrees    Small: 45degrees -> -90degrees    Large: 45degrees -> 270degrees (no change from original) 

I originally thought that subtracting 360 from one of the angles would work, but it doesn't seem to work in all cases.

Any ideas?

  • 0
    Ah, I see. Okay, I'll try that and report back. Thank you2012-01-28

1 Answers 1

1

Is this what you need?

With $\color{darkgreen}{\theta_2}\ge\color{maroon}{\theta_1}$.

The pink arc starts at $\color{darkblue}{\theta_2-360^\circ}$ and ends at $\color{maroon}{\theta_1}$.

The orange arc starts at $\color{maroon}{\theta_1}$ and ends at $\color{darkgreen}{\theta_2}$.

enter image description here