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_unix/sys/src/cmd/map/libmap/cylindrical.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
int
6
Xcylindrical(struct place *place, double *x, double *y)
7
{
8
	if(fabs(place->nlat.l) > 80.*RAD)
9
		return(-1);
10
	*x = - place->wlon.l;
11
	*y = place->nlat.s / place->nlat.c;
12
	return(1);
13
}
14
 
15
proj
16
cylindrical(void)
17
{
18
	return(Xcylindrical);
19
}