204205206207208209210211212213214
} public void testOverlappingIntersects() { Bounds c = new Bounds(b); c.translate(-5, -5); c.extend(10, 10); assertTrue(b.intersects(c)); c = new Bounds(b); c.translate(5, 5); c.extend(-10, -10);
209210211212213214215216217218219
c.extend(10, 10); assertTrue(b.intersects(c)); c = new Bounds(b); c.translate(5, 5); c.extend(-10, -10); assertTrue(b.intersects(c)); } public void testOverlappingUnion() { final Bounds c = new Bounds(3, 5, 10, 10);
207208209210211212213214215216217
212213214215216217218219220221222
206207208209210211212213214215216
211212213214215216217218219220221