Quadtree<O extends Rect> class
Methods
-
clear()
→ void
-
Clear the Quadtree
-
getQuadrants(Rect object)
→ List<Quadrant>
-
Determines which quadrants the object belongs to.
-
insert(O object)
→ void
-
Insert the object into the node. If the node exceeds the capacity,
it will split and add all objects to their corresponding subnodes.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
retrieve(Rect bounds)
→ List<O>
-
Return all objects that could collide with the given object, given
bounds.
-
retrieveAllNodes([Quadtree<O>? quadtree])
→ List<Rect>
-
-
split()
→ void
-
Split the node into 4 subnodes (ne, nw, sw, se)
-
toString()
→ String
-
A string representation of this object.
inherited