xref: /plan9-contrib/sys/src/cmd/map/libmap/cylindrical.c (revision 219b2ee8daee37f4aad58d63f21287faa8e4ffdc)
1 #include "map.h"
2 
3 int
4 Xcylindrical(struct place *place, double *x, double *y)
5 {
6 	if(fabs(place->nlat.l) > 80.*RAD)
7 		return(-1);
8 	*x = - place->wlon.l;
9 	*y = place->nlat.s / place->nlat.c;
10 	return(1);
11 }
12 
13 proj
14 cylindrical(void)
15 {
16 	return(Xcylindrical);
17 }
18