MCPcopy Create free account

hub / github.com/JamesLMilner/quadtree-go / functions

Functions22 in github.com/JamesLMilner/quadtree-go

↓ 13 callersMethodInsert
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 callersFunctionrandMinMax
(min float64, max float64)
quadtree_test.go:396
↓ 10 callersFunctionsetupQuadtree
Convenience Functions
quadtree_test.go:378
↓ 9 callersMethodgetIndex
getIndex - Determine which quadrant the object belongs to (0-3)
quadtree.go:158
↓ 5 callersMethodsplit
split - split the node into 4 subnodes
quadtree.go:83
↓ 3 callersMethodRetrieve
Retrieve - Return all objects that could collide with the given object
quadtree.go:251
↓ 2 callersMethodIsPoint
IsPoint - Checks if a bounds object is a point or not (has no width or height)
quadtree.go:23
↓ 1 callersMethodClear
Clear - Clear the Quadtree
quadtree.go:315
↓ 1 callersMethodIntersects
Intersects - Checks if a Bounds object intersects with another Bounds
quadtree.go:34
↓ 1 callersMethodRetrieveIntersections
RetrieveIntersections - Bring back all the bounds in a Quadtree that intersect with a provided bounds
quadtree.go:299
↓ 1 callersMethodRetrievePoints
RetrievePoints - Return all points that collide
quadtree.go:281
↓ 1 callersMethodTotalNodes
TotalNodes - Retrieve the total number of sub-Quadtrees in a Quadtree
quadtree.go:67
FunctionBenchmarkInsertOneThousand
Benchmarks
quadtree_test.go:346
FunctionTestCorrectQuad
(t *testing.T)
quadtree_test.go:90
FunctionTestIntersectionRetrieval
(t *testing.T)
quadtree_test.go:264
FunctionTestQuadtreeClear
(t *testing.T)
quadtree_test.go:301
FunctionTestQuadtreeCreation
(t *testing.T)
quadtree_test.go:9
FunctionTestQuadtreeInsert
(t *testing.T)
quadtree_test.go:49
FunctionTestQuadtreeRandomPointRetrieval
(t *testing.T)
quadtree_test.go:207
FunctionTestQuadtreeRetrieval
(t *testing.T)
quadtree_test.go:155
FunctionTestSplit
(t *testing.T)
quadtree_test.go:17
FunctionTestTotalSubnodes
(t *testing.T)
quadtree_test.go:33