// sphpoly.h // // by John D. de Boer bool sphererectsect(const sphererect *A, const sphererect *B); // Floating-point polygons typedef struct { string name; // name bool lake, // whether the polygon represents a lake or sea within another larger polygon open; // whether the polygon is open, for example for a river short num; // number of vertices in polygon (counting first one twice, if closed) sphererect rect; // spherical bounds vector pt[0]; // vertex coordinates } vectorpoly; typedef struct { short num; // number of vector polygons vectorpoly **poly[0]; // references to individual polygons } vectorpolys; void calcpolywedge(vectorpoly **VP); vectorpoly **longtovectorpoly(polygon **P); vectorpolys **longtovectorpolys(polygons **Py); void oldvectorpolys(vectorpolys **P);