MCPcopy
hub / github.com/EngoEngine/engo / Clear

Method Clear

quadtree.go:354–359  ·  view source on GitHub ↗

Clear removes all items from the quadtree

()

Source from the content-addressed store, hash-verified

352
353//Clear removes all items from the quadtree
354func (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}

Callers 1

UpdateMethod · 0.80

Calls 2

freeQuadtreeNodeMethod · 0.95
newNodeMethod · 0.95

Tested by

no test coverage detected