Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/breck7/scroll
/ lengthPoint
Function
lengthPoint
external/.d3.js:11869–11873 ·
view source on GitHub ↗
(x, y)
Source
from the content-addressed store, hash-verified
11867
}
11868
11869
function
lengthPoint(x, y) {
11870
x0 -= x, y0 -= y;
11871
lengthSum.add(sqrt$2(x0 * x0 + y0 * y0));
11872
x0 = x, y0 = y;
11873
}
11874
11875
var
pathMeasure = lengthStream;
11876
Callers
1
.d3.js
File · 0.85
Calls
1
add
Method · 0.45
Tested by
no test coverage detected