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

Function centroidPoint

docs/tests/v2/es6/js/sanddance.js:113086–113090  ·  view source on GitHub ↗
(lambda, phi)

Source from the content-addressed store, hash-verified

113084}; // Arithmetic mean of Cartesian vectors.
113085
113086function centroidPoint(lambda, phi) {
113087 lambda *= _math.radians, phi *= _math.radians;
113088 var cosPhi = (0, _math.cos)(phi);
113089 centroidPointCartesian(cosPhi * (0, _math.cos)(lambda), cosPhi * (0, _math.sin)(lambda), (0, _math.sin)(phi));
113090}
113091
113092function centroidPointCartesian(x, y, z) {
113093 ++W0;

Callers 4

centroidPointFirstLineFunction · 0.70
centroidPointLineFunction · 0.70
centroidPointFirstRingFunction · 0.70
centroidPointRingFunction · 0.70

Calls 1

centroidPointCartesianFunction · 0.70

Tested by

no test coverage detected