azequidist.c 290 B

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