MCPcopy Index your code
hub / github.com/microsoft/SandDance / intersectItem

Function intersectItem

docs/app/js/sanddance-app.js:124857–124861  ·  view source on GitHub ↗
(item, box, test)

Source from the content-addressed store, hash-verified

124855 return hits;
124856}
124857function intersectItem(item, box, test) {
124858 // test bounds enclosure, bounds intersection, then detailed test
124859 const bounds21 = item.bounds;
124860 return box.encloses(bounds21) || box.intersects(bounds21) && test(item, box);
124861}
124862const clipBounds = new Bounds();
124863function boundClip(mark) {
124864 const clip4 = mark.clip;

Callers 2

intersectMarkFunction · 0.70
intersectGroupFunction · 0.70

Calls 1

testFunction · 0.70

Tested by

no test coverage detected