Not Yet Answered # arc intersection plotting

iamthwee 1,547 Discussion Starter hbmarar iamthwee 1,547 iamthwee 1,547 Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...

0

That's too vague, be more specific.

Do you know the radius of the two arcs, and what coordinates their centre points are at?...

0

Do you know the math behind it? If you know the math then it won't be very hard.

hi,

I do not havemuch idea about mathematical behind it and also i believe it is still not direct programming from a single formula based. It requires many sub calculation and i wud love to get this program shared from any expert.

Thanking you in advance

Harish

0

>I do not havemuch idea about mathematical behind it and also i believe it is still not direct programming from a single formula based.

Instead of searching for intersection of two arcs, try searching for the intersection of circles.

After all an arc is just a part of a circle.

http://www.google.co.uk/search?hl=en&q=intersection+of+two+circles&meta= :eek:

0

>...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:

x^2 + y^2= r^2

So plotting the function yeilds...

y=\sqrt{r^2-x^2}

It is relatively simple to translate the unit circle, I'll leave that to you to work out.

This article has been dead for over six months. Start a new discussion instead.

Recommended Articles

When I execute this progammatically, I get a table with row heights much larger than when I do this manually.

Note : Sel is the Word.Selection object and the Clipboard contains an Excel Table.

```
public void AddClipboard()
{
Sel.PasteExcelTable(false,false, false);
var t = Sel.Tables[Sel.Tables.Count];
t.AutoFitBehavior(Word.WdAutoFitBehavior.wdAutoFitContent);
}
```

the function that I created to find the ...