QuadTree Another quadtree attempt Usage var quadtree = new QuadTree({ x: 0, y: 0, width: 100, height: 100 }) var node = { bounds: {x:10,y:10,width:0,height:0} } quadtree.insert(node)