R
RajkiranPro
i could calculate the area of a convex or non-convex polygon whose
coordinates are give in the anticlockwise order using the formula..
1/2 | (x1y2 + x2y3 + x3y4 +...+ xny1) - (y1x2 + y2x3 + y3x4 +...+
ynx1)|
However this fails when i calculate the area of self intersecting
polygons..
Can anyone help me in calculating the area of a self-intersecting
polygon..
Thanks in advance....
http://rajkiranpro.googlepages.com/polygons.JPG
coordinates are give in the anticlockwise order using the formula..
1/2 | (x1y2 + x2y3 + x3y4 +...+ xny1) - (y1x2 + y2x3 + y3x4 +...+
ynx1)|
However this fails when i calculate the area of self intersecting
polygons..
Can anyone help me in calculating the area of a self-intersecting
polygon..
Thanks in advance....
http://rajkiranpro.googlepages.com/polygons.JPG