# Area of a Polygon with Arcs

This is a discussion on Area of a Polygon with Arcs within the C Programming forums, part of the General Programming Boards category; Has anyone seen a C procedure for calculating the area of a polygon when one or more sides are arcs?...

1. ## Area of a Polygon with Arcs

Has anyone seen a C procedure for calculating the area of a polygon when one or more sides are arcs?

2. I have not, but it's pretty easily done I believe: (I could be wrong)

1) calculate the area below the arc
2) calculate the arc'd area,

What have you tried? Are you close?

3. Arcs as in semi circles or arcs as in not an obvious percentage of a circle arcs? For the second, you'll need to do some integration.

4. And for integral calculus help, just ask for User Name!

5. I can help with the math portion, but coding it...

6. I'm not a genius! Why should I have to suffer?

7. I don't think I explained my question fully.

I have no problem with the maths for any specific polygon, and there are plenty of general C functions available for polygons with lines only, but I need a variant that allows at least one side to be an arc.

Usage will be for automatically pricing any custom designed polygon where the price is calculated using the polygon area, rather than the blank from which it will be cut.

I have seen this published some time ago, but at the time I only needed to deal with straight line convex polygons, now I need a more complex solution I can't find it again.