MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / distance

Function distance

src/test/resources/libraries/html2canvas/html2canvas.js:2098–2098  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

2096 return [lineLength, halfWidth - xDiff, halfWidth + xDiff, halfHeight - yDiff, halfHeight + yDiff];
2097 };
2098 var distance = function (a, b) { return Math.sqrt(a * a + b * b); };
2099 var findCorner = function (width, height, x, y, closest) {
2100 var corners = [
2101 [0, 0],

Callers 2

findCornerFunction · 0.85
calculateRadiusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…