tethys-feature-service/node_modules/proj4/lib/common/tsfnz.js
2023-10-02 15:04:02 +02:00

9 lines
248 B
JavaScript

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);
}