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

Function enclosesNot

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

Source from the content-addressed store, hash-verified

13337}
13338
13339function enclosesNot(a, b) {
13340 var dr = a.r - b.r, dx = b.x - a.x, dy = b.y - a.y;
13341 return dr < 0 || dr * dr < dx * dx + dy * dy;
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;

Callers 1

extendBasisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected