Companion

Functions

Link copied to clipboard
fun QuadTree.Companion.buildQuadTree(shapeFunction: ShapeFunction, area: Rectangle, maxDepth: Int): QuadTree

Builds an adaptive quadtree over area for shapeFunction, down to maxDepth, collapsing every subtree that turns out to be fully inside or fully outside the shape into a single QuadTree.Full/QuadTree.Empty node.