MCPcopy Create free account
hub / github.com/microsoft/SandDance / conicProjection

Function conicProjection

docs/app/js/sanddance-app.js:133821–133830  ·  view source on GitHub ↗
(projectAt)

Source from the content-addressed store, hash-verified

133819var _mathJs = require("../math.js");
133820var _indexJs = require("./index.js");
133821function conicProjection(projectAt) {
133822 var phi0 = 0, phi1 = (0, _mathJs.pi) / 3, m = (0, _indexJs.projectionMutator)(projectAt), p = m(phi0, phi1);
133823 p.parallels = function(_) {
133824 return arguments.length ? m(phi0 = _[0] * (0, _mathJs.radians), phi1 = _[1] * (0, _mathJs.radians)) : [
133825 phi0 * (0, _mathJs.degrees),
133826 phi1 * (0, _mathJs.degrees)
133827 ];
133828 };
133829 return p;
133830}
133831
133832},{"../math.js":"cDOGy","./index.js":"err8N","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"err8N":[function(require,module,exports) {
133833var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected