Quadtree<O extends Rect> constructor

Quadtree<O extends Rect>(
  1. Rect bounds, {
  2. int maxObjects = 10,
  3. int maxDepth = 4,
  4. int depth = 0,
})

Implementation

Quadtree(
  this.bounds, {
  this.maxObjects = 10,
  this.maxDepth = 4,
  this.depth = 0,
})  : objects = [],
      nodes = {};