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

Function azimuthalInvert

docs/app/js/sanddance-app.js:134410–134418  ·  view source on GitHub ↗
(angle)

Source from the content-addressed store, hash-verified

134408 };
134409}
134410function azimuthalInvert(angle) {
134411 return function(x, y) {
134412 var z = (0, _mathJs.sqrt)(x * x + y * y), c = angle(z), sc = (0, _mathJs.sin)(c), cc = (0, _mathJs.cos)(c);
134413 return [
134414 (0, _mathJs.atan2)(x * sc, z * cc),
134415 (0, _mathJs.asin)(z && y * sc / z)
134416 ];
134417 };
134418}
134419
134420},{"../math.js":"cDOGy","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"7w2oT":[function(require,module,exports) {
134421var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 1

angleFunction · 0.70

Tested by

no test coverage detected