MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / intersectsWith

Method intersectsWith

src/main/java/fieldbox/boxes/Drops.java:33–37  ·  view source on GitHub ↗
(Box x, Vec2 position)

Source from the content-addressed store, hash-verified

31 }
32
33 private boolean intersectsWith(Box x, Vec2 position) {
34 Rect f = x.properties.get(Box.frame);
35 if (f == null) return false;
36 return f.intersects(position.get());
37 }
38
39 private Box selection(Box root) {
40 return root.breadthFirst(root.both())

Callers

nothing calls this directly

Calls 2

intersectsMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected