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

int
Xsinusoidal(struct place *place, double *x, double *y)
{
	*x = - place->wlon.l * place->nlat.c;
	*y = place->nlat.l;
	return(1);
}

proj
sinusoidal(void)
{
	return(Xsinusoidal);
}