This example demonstrates how to take the size of objects into account when selecting objects efficiently with a quadtree. Selected objects are shown in red, visited but not selected objects are shown in yellow. The efficiency depends on the biggest width and biggest height among all object. It is assumed that all objects are rectangle-shaped.
Example series:
- Quadtree 1
- Quadtree 2
- Quadtree 3
Based on Mike Bostock's quadtree example.