Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JamesLMilner/quadtree-go
/ functions
Functions
22 in github.com/JamesLMilner/quadtree-go
⨍
Functions
22
◇
Types & classes
2
↓ 13 callers
Method
Insert
Insert - Insert the object into the node. If the node exceeds the capacity, it will split and add all objects to their corresponding subnodes.
quadtree.go:197
↓ 12 callers
Function
randMinMax
(min float64, max float64)
quadtree_test.go:396
↓ 10 callers
Function
setupQuadtree
Convenience Functions
quadtree_test.go:378
↓ 9 callers
Method
getIndex
getIndex - Determine which quadrant the object belongs to (0-3)
quadtree.go:158
↓ 5 callers
Method
split
split - split the node into 4 subnodes
quadtree.go:83
↓ 3 callers
Method
Retrieve
Retrieve - Return all objects that could collide with the given object
quadtree.go:251
↓ 2 callers
Method
IsPoint
IsPoint - Checks if a bounds object is a point or not (has no width or height)
quadtree.go:23
↓ 1 callers
Method
Clear
Clear - Clear the Quadtree
quadtree.go:315
↓ 1 callers
Method
Intersects
Intersects - Checks if a Bounds object intersects with another Bounds
quadtree.go:34
↓ 1 callers
Method
RetrieveIntersections
RetrieveIntersections - Bring back all the bounds in a Quadtree that intersect with a provided bounds
quadtree.go:299
↓ 1 callers
Method
RetrievePoints
RetrievePoints - Return all points that collide
quadtree.go:281
↓ 1 callers
Method
TotalNodes
TotalNodes - Retrieve the total number of sub-Quadtrees in a Quadtree
quadtree.go:67
Function
BenchmarkInsertOneThousand
Benchmarks
quadtree_test.go:346
Function
TestCorrectQuad
(t *testing.T)
quadtree_test.go:90
Function
TestIntersectionRetrieval
(t *testing.T)
quadtree_test.go:264
Function
TestQuadtreeClear
(t *testing.T)
quadtree_test.go:301
Function
TestQuadtreeCreation
(t *testing.T)
quadtree_test.go:9
Function
TestQuadtreeInsert
(t *testing.T)
quadtree_test.go:49
Function
TestQuadtreeRandomPointRetrieval
(t *testing.T)
quadtree_test.go:207
Function
TestQuadtreeRetrieval
(t *testing.T)
quadtree_test.go:155
Function
TestSplit
(t *testing.T)
quadtree_test.go:17
Function
TestTotalSubnodes
(t *testing.T)
quadtree_test.go:33