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

Function centroidPointFirstLine

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

Source from the content-addressed store, hash-verified

133579 centroidStream.point = centroidPointFirstLine;
133580}
133581function centroidPointFirstLine(x, y) {
133582 centroidStream.point = centroidPointLine;
133583 centroidPoint(x0 = x, y0 = y);
133584}
133585function centroidPointLine(x, y) {
133586 var dx = x - x0, dy = y - y0, z = (0, _mathJs.sqrt)(dx * dx + dy * dy);
133587 X1 += z * (x0 + x) / 2;

Callers

nothing calls this directly

Calls 1

centroidPointFunction · 0.70

Tested by

no test coverage detected