: : There is a nice algorith available to calculate the area of a polygon defined by an array of x,y coordinate pairs.
: : It relies on the idea that the area formed by any pair of points (Xi,Yi) and (Xi+1, Yi+1) and the points projected onto the X-axis is a trapezium, with area = (Xi+1-Xi)*(Yi+Yi+1)/2.
: : Some trapeziums will have a negative and some a positive area. If you add all the areas traversing clockwise, the total is the area of the polygon. Going anti-clock gives the negative area.
: :
: :
: : Clive
: :
: :
:
: So do you think you can help me out?
: Thanks
Just some few code to help me complete the program. Please.
: