That's too vague, be more specific.
Do you know the radius of the two arcs, and what coordinates their centre points are at?...
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
Do you know the math behind it? If you know the math then it won't be very hard.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
>...and plotting it.
Drawing it should be simple especially if you use the inbuilt functions from java's 2D graphics.
Drawing Arcs
Using the Arc2D.Float class, the following statement draws an open arc at (100,50) that is 120 degrees long, begins at the 30-degree mark, and has a height and width of 75 each:
Arc2D.Float smile = new Arc2D.Float(100F,50F,75F,75F,30F,120F,Arc2D.Float.OPEN);
Otherwise you can create your own arc function. Some rudimentary math helps...
A circle is given by the equation:
[tex] x^2 + y^2= r^2[/tex]
So plotting the function yeilds...
[tex]y=\sqrt{r^2-x^2}[/tex]
It is relatively simple to translate the unit circle, I'll leave that to you to work out.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439