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

Function centroidPointCartesian

docs/app/js/sanddance-app.js:132307–132312  ·  view source on GitHub ↗
(x, y, z)

Source from the content-addressed store, hash-verified

132305 centroidPointCartesian(cosPhi * (0, _mathJs.cos)(lambda), cosPhi * (0, _mathJs.sin)(lambda), (0, _mathJs.sin)(phi));
132306}
132307function centroidPointCartesian(x, y, z) {
132308 ++W0;
132309 X0 += (x - X0) / W0;
132310 Y0 += (y - Y0) / W0;
132311 Z0 += (z - Z0) / W0;
132312}
132313function centroidLineStart() {
132314 centroidStream.point = centroidLinePointFirst;
132315}

Callers 5

centroidPointFunction · 0.70
centroidLinePointFirstFunction · 0.70
centroidLinePointFunction · 0.70
centroidRingPointFirstFunction · 0.70
centroidRingPointFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected