mirror of
https://github.com/proj4js/proj4js.git
synced 2026-02-01 17:20:57 +00:00
10 lines
264 B
JavaScript
10 lines
264 B
JavaScript
export default function (eccent, sinphi) {
|
|
var con;
|
|
if (eccent > 1.0e-7) {
|
|
con = eccent * sinphi;
|
|
return ((1 - eccent * eccent) * (sinphi / (1 - con * con) - (0.5 / eccent) * Math.log((1 - con) / (1 + con))));
|
|
} else {
|
|
return (2 * sinphi);
|
|
}
|
|
}
|