Clear removes all items from the quadtree
()
| 352 | |
| 353 | //Clear removes all items from the quadtree |
| 354 | func (qt *Quadtree) Clear() { |
| 355 | bounds := qt.root.Bounds |
| 356 | qt.freeQuadtreeNode(qt.root) |
| 357 | qt.root = qt.newNode(bounds, 0) |
| 358 | qt.Total = 0 |
| 359 | } |
no test coverage detected