Why not?
This commit is contained in:
parent
a01e58366c
commit
28994509cc
82 changed files with 13293 additions and 0 deletions
19
src/cmd/map/libmap/cylindrical.c
Normal file
19
src/cmd/map/libmap/cylindrical.c
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include <u.h>
|
||||
#include <libc.h>
|
||||
#include "map.h"
|
||||
|
||||
int
|
||||
Xcylindrical(struct place *place, double *x, double *y)
|
||||
{
|
||||
if(fabs(place->nlat.l) > 80.*RAD)
|
||||
return(-1);
|
||||
*x = - place->wlon.l;
|
||||
*y = place->nlat.s / place->nlat.c;
|
||||
return(1);
|
||||
}
|
||||
|
||||
proj
|
||||
cylindrical(void)
|
||||
{
|
||||
return(Xcylindrical);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue