MCPcopy Index your code
hub / github.com/EngoEngine/engo / unsplit

Method unsplit

quadtree.go:203–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201}
202
203func (qt *quadtreeNode) unsplit() {
204 for i := 0; i < 4; i++ {
205 if !qt.Nodes[i].isEmpty() {
206 return
207 }
208 }
209 for i := 0; i < 4; i++ {
210 qt.Tree.freeQuadtreeNode(qt.Nodes[i])
211 qt.Nodes[i] = nil
212 }
213 qt.hasNodes = false
214}
215
216// getIndex - Determine which quadrant the object belongs to (0-3)
217func (qt *quadtreeNode) getIndex(pRect AABB) int {

Callers 1

RemoveMethod · 0.95

Calls 2

isEmptyMethod · 0.80
freeQuadtreeNodeMethod · 0.80

Tested by

no test coverage detected