PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Proj4/PJ_gins8.c

http://github.com/route-me/route-me
C | 20 lines | 19 code | 1 blank | 0 comment | 1 complexity | ef09c10d98842595c50e8e26dc822200 MD5 | raw file
 1#ifndef lint
 2static const char SCCSID[]="@(#)PJ_gins8.c	4.1	94/02/15	GIE	REL";
 3#endif
 4#define PJ_LIB__
 5# include	"projects.h"
 6PROJ_HEAD(gins8, "Ginsburg VIII (TsNIIGAiK)") "\n\tPCyl, Sph., no inv.";
 7#define	Cl 0.000952426
 8#define	Cp 0.162388
 9#define	C12 0.08333333333333333
10FORWARD(s_forward); /* spheroid */
11	double t = lp.phi * lp.phi;
12
13	xy.y = lp.phi * (1. + t * C12);
14	xy.x = lp.lam * (1. - Cp * t);
15	t = lp.lam * lp.lam;
16	xy.x *= (0.87 - Cl * t * t);
17	return (xy);
18}
19FREEUP; if (P) pj_dalloc(P); }
20ENTRY0(gins8) P->es = 0.; P->inv = 0; P->fwd = s_forward; ENDENTRY(P)