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

« back to all changes in this revision

Viewing changes to src/PJ_denoy.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_denoy.c      4.1 94/02/15     GIE     REL";
 
3
#endif
 
4
#define PJ_LIB__
 
5
#include        <projects.h>
 
6
PROJ_HEAD(denoy, "Denoyer Semi-Elliptical") "\n\tPCyl., no inv., Sph.";
 
7
#define C0      0.95
 
8
#define C1      -.08333333333333333333
 
9
#define C3      .00166666666666666666
 
10
#define D1      0.9
 
11
#define D5      0.03
 
12
FORWARD(s_forward); /* spheroid */
 
13
        xy.y = lp.phi;
 
14
        xy.x = lp.lam;
 
15
        lp.lam = fabs(lp.lam);
 
16
        xy.x *= cos((C0 + lp.lam * (C1 + lp.lam * lp.lam * C3)) *
 
17
                (lp.phi * (D1 + D5 * lp.phi * lp.phi * lp.phi * lp.phi)));
 
18
        return (xy);
 
19
}
 
20
FREEUP; if (P) pj_dalloc(P); }
 
21
ENTRY0(denoy) P->es = 0.; P->fwd = s_forward; ENDENTRY(P)