PointQuadTree

A quad tree which tracks items with a Point geometry. See http://en.wikipedia.org/wiki/Quadtree for details on the data structure. This class is not thread safe.

Constructors

Link copied to clipboard
constructor(minX: Double, maxX: Double, minY: Double, maxY: Double)
Creates a new quad tree with specified bounds.
constructor(bounds: Bounds)

Types

Link copied to clipboard
interface Item

Functions

Link copied to clipboard
open fun add(item: T)
Insert an item.
Link copied to clipboard
open fun clear()
Removes all points from the quadTree
Link copied to clipboard
open fun remove(item: T): Boolean
Remove the given item from the set.
Link copied to clipboard
open fun search(searchBounds: Bounds): Collection<T>
Search for all items within a given bounds.