aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/map/libmap/azequidist.c
blob: d26d33d4b3f6d21d9515df1bb3c5a19d2f6a4aee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <u.h>
#include <libc.h>
#include "map.h"

int
Xazequidistant(struct place *place, double *x, double *y)
{
	double colat;
	colat = PI/2 - place->nlat.l;
	*x = -colat * place->wlon.s;
	*y = -colat * place->wlon.c;
	return(1);
}

proj
azequidistant(void)
{
	return(Xazequidistant);
}