MCPcopy Create free account
hub / github.com/breck7/scroll / centroidPointFirstLine

Function centroidPointFirstLine

external/.d3.js:11744–11747  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

11742}
11743
11744function centroidPointFirstLine(x, y) {
11745 centroidStream.point = centroidPointLine;
11746 centroidPoint(x0$1 = x, y0$1 = y);
11747}
11748
11749function centroidPointLine(x, y) {
11750 var dx = x - x0$1, dy = y - y0$1, z = sqrt$2(dx * dx + dy * dy);

Callers

nothing calls this directly

Calls 1

centroidPointFunction · 0.85

Tested by

no test coverage detected