4 #define __MAPGRAPH_H__ 1 10 #define LONGITUDE(lon) {\ 11 if (lon < -180.0) lon += 360.0; \ 12 if (lon > 180.0) lon -= 360.0; \ 15 #define LATITUDE(lat) {\ 16 if (lat < -90.0) lat += 180.0; \ 17 if (lat > 90.0) lat -= 180.0; \ 33 void far (*fwdproj)(),
34 void far (*invproj)() );
36 void screenxy(
double xmap,
double ymap,
37 int *xscreen,
int *yscreen );
39 void mapxy(
int xscreen,
int yscreen,
double *xmap,
double *ymap );
void mapinit(double xmn, double ymn, double xmx, double ymx, int width, int height, void far(*fwdproj)(), void far(*invproj)())
void screenxy(double xmap, double ymap, int *xscreen, int *yscreen)
void draw_graticule(double xstart, double ystart, double xstep, double ystep, int ninterm_pts, int color, int style, int thickness)
void mapxy(int xscreen, int yscreen, double *xmap, double *ymap)