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

Function centroidPointLine

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

Source from the content-addressed store, hash-verified

11747}
11748
11749function centroidPointLine(x, y) {
11750 var dx = x - x0$1, dy = y - y0$1, z = sqrt$2(dx * dx + dy * dy);
11751 X1 += z * (x0$1 + x) / 2;
11752 Y1 += z * (y0$1 + y) / 2;
11753 Z1 += z;
11754 centroidPoint(x0$1 = x, y0$1 = y);
11755}
11756
11757function centroidLineEnd() {
11758 centroidStream.point = centroidPoint;

Callers

nothing calls this directly

Calls 1

centroidPointFunction · 0.85

Tested by

no test coverage detected