shithub: riscv

ref: 8188b4f4f0e07b6669e6ae3c6c1099af917eaab4
dir: /sys/src/cmd/map/libmap/sinusoidal.c/

View raw version
#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);
}