~ubuntu-branches/ubuntu/gutsy/proj/gutsy

« back to all changes in this revision

Viewing changes to src/PJ_larr.c

  • Committer: Bazaar Package Importer
  • Author(s): Peter S Galbraith
  • Date: 2002-01-11 10:27:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020111102712-ayi18r8y2eesv0y9
Tags: upstream-4.4.5
ImportĀ upstreamĀ versionĀ 4.4.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef lint
 
2
static const char SCCSID[]="@(#)PJ_larr.c       4.1     94/02/15        GIE     REL";
 
3
#endif
 
4
#define PROJ_PARMS__
 
5
#define PJ_LIB__
 
6
#include        <projects.h>
 
7
PROJ_HEAD(larr, "Larrivee") "\n\tMisc Sph, no inv.";
 
8
#define SIXTH .16666666666666666
 
9
FORWARD(s_forward); /* sphere */
 
10
        xy.x = 0.5 * lp.lam * (1. + sqrt(cos(lp.phi)));
 
11
        xy.y = lp.phi / (cos(0.5 * lp.phi) * cos(SIXTH * lp.lam));
 
12
        return (xy);
 
13
}
 
14
FREEUP; if (P) pj_dalloc(P); }
 
15
ENTRY0(larr) P->fwd = s_forward; P->inv = 0; P->es = 0.; ENDENTRY(P)