9 lines
248 B
JavaScript
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);
|
|
}
|