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

« back to all changes in this revision

Viewing changes to src/PJ_mill.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_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)