MCPcopy Create free account
hub / github.com/microsoft/SandDance / intersectPoint

Function intersectPoint

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

Source from the content-addressed store, hash-verified

122199 };
122200}
122201function intersectPoint(item, box) {
122202 return box.contains(item.x || 0, item.y || 0);
122203}
122204function intersectRect(item, box) {
122205 const x23 = item.x || 0, y22 = item.y || 0, w4 = item.width || 0, h9 = item.height || 0;
122206 return box.intersects(b.set(x23, y22, x23 + w4, y22 + h9));

Callers

nothing calls this directly

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected