tethys-feature-service/node_modules/proj4/lib/common/tsfnz.js

9 lines
248 B
JavaScript
Raw Normal View History

2023-10-02 13:04:02 +00:00
import {HALF_PI} from '../constants/values';
export default function(eccent, phi, sinphi) {
var con = eccent * sinphi;
var com = 0.5 * eccent;
con = Math.pow(((1 - con) / (1 + con)), com);
return (Math.tan(0.5 * (HALF_PI - phi)) / con);
}