2
static const char SCCSID[]="@(#)PJ_wag2.c 4.1 94/02/15 GIE REL";
6
PROJ_HEAD(wag2, "Wagner II") "\n\tPCyl., Sph.";
11
FORWARD(s_forward); /* spheroid */
12
lp.phi = aasin(C_p1 * sin(C_p2 * lp.phi));
13
xy.x = C_x * lp.lam * cos(lp.phi);
17
INVERSE(s_inverse); /* spheroid */
19
lp.lam = xy.x / (C_x * cos(lp.phi));
20
lp.phi = aasin(sin(lp.phi) / C_p1) / C_p2;
23
FREEUP; if (P) pj_dalloc(P); }
24
ENTRY0(wag2) P->es = 0.; P->inv = s_inverse; P->fwd = s_forward; ENDENTRY(P)