1 28994509 2004-04-21 devnull #include <u.h>
2 28994509 2004-04-21 devnull #include <libc.h>
3 28994509 2004-04-21 devnull #include "map.h"
6 28994509 2004-04-21 devnull Xcylindrical(struct place *place, double *x, double *y)
8 28994509 2004-04-21 devnull if(fabs(place->nlat.l) > 80.*RAD)
9 28994509 2004-04-21 devnull return(-1);
10 28994509 2004-04-21 devnull *x = - place->wlon.l;
11 28994509 2004-04-21 devnull *y = place->nlat.s / place->nlat.c;
12 28994509 2004-04-21 devnull return(1);
16 28994509 2004-04-21 devnull cylindrical(void)
18 28994509 2004-04-21 devnull return(Xcylindrical);