MCPcopy
hub / github.com/jipegit/OSXAuditor / inside

Function inside

d3-3.2.8/d3.js:2928–2931  ·  view source on GitHub ↗
(point)

Source from the content-addressed store, hash-verified

2926 }
2927 };
2928 function inside(point) {
2929 var a = corner(point, -1), i = insidePolygon([ a === 0 || a === 3 ? x0 : x1, a > 1 ? y1 : y0 ]);
2930 return i;
2931 }
2932 function insidePolygon(p) {
2933 var wn = 0, n = polygon.length, y = p[1];
2934 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