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

Function lengthPointFirst

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

Source from the content-addressed store, hash-verified

133691 }
133692};
133693function lengthPointFirst(x, y) {
133694 lengthStream.point = lengthPoint;
133695 x00 = x0 = x, y00 = y0 = y;
133696}
133697function lengthPoint(x, y) {
133698 x0 -= x, y0 -= y;
133699 lengthSum.add((0, _mathJs.sqrt)(x0 * x0 + y0 * y0));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected