MCPcopy Index your code
hub / github.com/microsoft/SandDance / tany

Function tany

docs/app/js/sanddance-app.js:134445–134447  ·  view source on GitHub ↗
(y)

Source from the content-addressed store, hash-verified

134443var _conicJs = require("./conic.js");
134444var _mercatorJs = require("./mercator.js");
134445function tany(y) {
134446 return (0, _mathJs.tan)(((0, _mathJs.halfPi) + y) / 2);
134447}
134448function conicConformalRaw(y0, y1) {
134449 var cy0 = (0, _mathJs.cos)(y0), n = y0 === y1 ? (0, _mathJs.sin)(y0) : (0, _mathJs.log)(cy0 / (0, _mathJs.cos)(y1)) / (0, _mathJs.log)(tany(y1) / tany(y0)), f = cy0 * (0, _mathJs.pow)(tany(y0), n) / n;
134450 if (!n) return 0, _mercatorJs.mercatorRaw;

Callers 2

conicConformalRawFunction · 0.70
projectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected