plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

sinusoidal.c (235B)


      1 #include <u.h>
      2 #include <libc.h>
      3 #include "map.h"
      4 
      5 int
      6 Xsinusoidal(struct place *place, double *x, double *y)
      7 {
      8 	*x = - place->wlon.l * place->nlat.c;
      9 	*y = place->nlat.l;
     10 	return(1);
     11 }
     12 
     13 proj
     14 sinusoidal(void)
     15 {
     16 	return(Xsinusoidal);
     17 }