00001 // Class point needed by 2D convex hull code 00002 class Point { 00003 00004 public: 00005 Point(float xx, float yy) { 00006 x=xx; 00007 y=yy; 00008 } 00009 Point(void) { 00010 x=0; y=0; 00011 } 00012 float x,y; 00013 00014 }; 00015 00016 int chainHull_2D( Point* P, int n, Point* H ); 00017