MCPcopy Create free account
hub / github.com/EngoEngine/engo / Insert

Method Insert

quadtree.go:247–251  ·  view source on GitHub ↗

Insert inserts the given item to the quadtree

(item AABBer)

Source from the content-addressed store, hash-verified

245
246// Insert inserts the given item to the quadtree
247func (qt *Quadtree) Insert(item AABBer) {
248 qt.Total++
249 pRect := item.AABB()
250 qt.root.Insert(qt.newQuadtreeNodeData(item, pRect))
251}
252
253func (qt *quadtreeNode) Insert(item *quadtreeNodeData) {
254 if qt.hasNodes {

Callers 1

InsertMethod · 0.45

Calls 2

newQuadtreeNodeDataMethod · 0.95
AABBMethod · 0.65

Tested by

no test coverage detected