MCPcopy Create free account
hub / github.com/idank/explainshell / d3_geom_quadtreeVisit

Function d3_geom_quadtreeVisit

explainshell/web/static/js/d3.v3.js:4618–4626  ·  view source on GitHub ↗
(f, node, x1, y1, x2, y2)

Source from the content-addressed store, hash-verified

4616 };
4617 }
4618 function d3_geom_quadtreeVisit(f, node, x1, y1, x2, y2) {
4619 if (!f(node, x1, y1, x2, y2)) {
4620 var sx = (x1 + x2) * .5, sy = (y1 + y2) * .5, children = node.nodes;
4621 if (children[0]) d3_geom_quadtreeVisit(f, children[0], x1, y1, sx, sy);
4622 if (children[1]) d3_geom_quadtreeVisit(f, children[1], sx, y1, x2, sy);
4623 if (children[2]) d3_geom_quadtreeVisit(f, children[2], x1, sy, sx, y2);
4624 if (children[3]) d3_geom_quadtreeVisit(f, children[3], sx, sy, x2, y2);
4625 }
4626 }
4627 d3.interpolateRgb = d3_interpolateRgb;
4628 function d3_interpolateRgb(a, b) {
4629 a = d3.rgb(a);

Callers 1

quadtreeFunction · 0.85

Calls 1

fFunction · 0.70

Tested by

no test coverage detected