How to calculate perimeter, area and centroid of a polygon

Hello,
Does anyone know how to calculate the perimeter, area and the centroid of polygon, given its number of corners and the position of each of them. An example of working code will be very helpful.

Thank you very much...
We aren't just going to give you the code for free. You have to work on it yourself, then come to us with problems you are having. The formulas themselves can probably be found easily if you use Google.
Topic archived. No new replies allowed.