/** A 2D POINTB FROMED BY FLOATS **/ public class Point2Df { public float x,y; /** Creates a new instance of Point2Df */ public Point2Df() { } } /** METHODS TO CALCULATE THE AREA AND CENTROID OF A POLYGON INSERT THEM INTO THE CORRESPONDING CLASS **/ public double SignedPolygonArea(Point[] polygon,int N) { Polygon P; int i,j; double area = 0; for (i=0;i