Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_tlsv12/sys/src/cmd/map/libmap/rectangular.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#include "map.h"
4
 
5
static double scale;
6
 
7
static int
8
Xrectangular(struct place *place, double *x, double *y)
9
{
10
	*x = -scale*place->wlon.l;
11
	*y = place->nlat.l;
12
	return(1);
13
}
14
 
15
proj
16
rectangular(double par)
17
{
18
	scale = cos(par*RAD);
19
	if(scale<.1)
20
		return 0;
21
	return(Xrectangular);
22
}