root / tags / v2_0_Build_1210 / libraries / libjni-proj4 / src / PJ_mill.c @ 38161
History | View | Annotate | Download (517 Bytes)
1 |
#ifndef lint
|
---|---|
2 |
static const char SCCSID[]="@(#)PJ_mill.c 4.1 94/02/15 GIE REL"; |
3 |
#endif
|
4 |
#define PJ_LIB__
|
5 |
# include <projects.h> |
6 |
PROJ_HEAD(mill, "Miller Cylindrical") "\n\tCyl, Sph"; |
7 |
FORWARD(s_forward); /* spheroid */
|
8 |
xy.x = lp.lam; |
9 |
xy.y = log(tan(FORTPI + lp.phi * .4)) * 1.25; |
10 |
return (xy);
|
11 |
} |
12 |
INVERSE(s_inverse); /* spheroid */
|
13 |
lp.lam = xy.x; |
14 |
lp.phi = 2.5 * (atan(exp(.8 * xy.y)) - FORTPI); |
15 |
return (lp);
|
16 |
} |
17 |
FREEUP; if (P) pj_dalloc(P); }
|
18 |
ENTRY0(mill) P->es = 0.; P->inv = s_inverse; P->fwd = s_forward; ENDENTRY(P)
|