class MyFace { int npoints = 0; //the number of points MyPoint [] points; //array of points MyFace (){ points = new MyPoint[0]; } MyFace(MyPoint[] inPoints){ points = new MyPoint[inPoints.length]; npoints = inPoints.length; for(int i=0; i 0.0) return false; //if clockwise else return true; //else ccw } }