KdTree

open class KdTree<T : Any>(items: List<T>, itemAdapter: ItemAdapter<T>, bucketSz: Int = 10) : SpatialTree<T>

Source from kool engine.

Constructors

Link copied to clipboard
fun <T : Any> KdTree(items: List<T>, itemAdapter: ItemAdapter<T>, bucketSz: Int = 10)

Types

Link copied to clipboard
inner class KdNode(val nodeRange: IntRange, bucketSz: Int) : SpatialTree.Node<T>

Functions

Link copied to clipboard
open operator override fun contains(element: T): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<T>): Boolean
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): MutableIterator<T>

Properties

Link copied to clipboard
Link copied to clipboard
open override val root: KdTree.KdNode<T>
Link copied to clipboard
open override val size: Int