tazequidist.c - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
tazequidist.c (290B)
---
1 #include <u.h>
2 #include <libc.h>
3 #include "map.h"
4
5 int
6 Xazequidistant(struct place *place, double *x, double *y)
7 {
8 double colat;
9 colat = PI/2 - place->nlat.l;
10 *x = -colat * place->wlon.s;
11 *y = -colat * place->wlon.c;
12 return(1);
13 }
14
15 proj
16 azequidistant(void)
17 {
18 return(Xazequidistant);
19 }