svn-gvsig-desktop / tags / v1_9_Build_1242 / libraries / libjni-proj4 / src / pj_tsfn.c @ 44345
History | View | Annotate | Download (341 Bytes)
1 |
/* determine small t */
|
---|---|
2 |
#ifndef lint
|
3 |
static const char SCCSID[]="@(#)pj_tsfn.c 4.3 93/06/12 GIE REL"; |
4 |
#endif
|
5 |
#include <math.h> |
6 |
#include <projects.h> |
7 |
#define HALFPI 1.5707963267948966 |
8 |
double
|
9 |
pj_tsfn(double phi, double sinphi, double e) { |
10 |
sinphi *= e; |
11 |
return (tan (.5 * (HALFPI - phi)) / |
12 |
pow((1. - sinphi) / (1. + sinphi), .5 * e)); |
13 |
} |