shithub: riscv

ref: 699d2e0ed94bd545bb3dd8c64a3922f56f273f0e
dir: /sys/src/cmd/map/libmap/azequidist.c/

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