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

Function intersectRule

docs/tests/v2/es6/js/sanddance.js:98661–98667  ·  view source on GitHub ↗
(item, box)

Source from the content-addressed store, hash-verified

98659}
98660
98661function intersectRule(item, box) {
98662 const x = item.x || 0,
98663 y = item.y || 0,
98664 x2 = item.x2 != null ? item.x2 : x,
98665 y2 = item.y2 != null ? item.y2 : y;
98666 return intersectBoxLine(box, x, y, x2, y2);
98667}
98668
98669function intersectBoxLine(box, x, y, u, v) {
98670 const {

Callers

nothing calls this directly

Calls 1

intersectBoxLineFunction · 0.70

Tested by

no test coverage detected