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

Function inside

explainshell/web/static/js/d3.v3.js:2672–2675  ·  view source on GitHub ↗
(point)

Source from the content-addressed store, hash-verified

2670 }
2671 };
2672 function inside(point) {
2673 var a = corner(point, -1), i = insidePolygon([ a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0 ]);
2674 return i;
2675 }
2676 function insidePolygon(p) {
2677 var wn = 0, n = polygon.length, y = p[1];
2678 for (var i = 0; i < n; ++i) {

Callers 1

d3_geo_clipPolygonFunction · 0.85

Calls 2

cornerFunction · 0.85
insidePolygonFunction · 0.85

Tested by

no test coverage detected