1: <?php
2:
3: namespace Quadtree;
4:
5: interface ICollisionDetector
6: {
7: /**
8: * Test if insertable item intersects with bounds
9: * @param \Quadtree\Geometry\Bounds $bounds
10: * @param \Quadtree\Insertable $item
11: * @return boolean
12: */
13: function intersects(Geometry\Bounds $bounds, Insertable $item);
14:
15: /**
16: * Test if new item collides with collection of items
17: * @param \Quadtree\Insertable[] $insertedItems
18: * @param \Quadtree\Insertable $item
19: * @return boolean
20: */
21: function collide(array $insertedItems, Insertable $item);
22: }
23: