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

Function enclosesWeak

external/.d3.js:13344–13347  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

13342}
13343
13344function enclosesWeak(a, b) {
13345 var dr = a.r - b.r + Math.max(a.r, b.r, 1) * 1e-9, dx = b.x - a.x, dy = b.y - a.y;
13346 return dr > 0 && dr * dr > dx * dx + dy * dy;
13347}
13348
13349function enclosesWeakAll(a, B) {
13350 for (var i = 0; i < B.length; ++i) {

Callers 2

packEncloseRandomFunction · 0.85
enclosesWeakAllFunction · 0.85

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected