Octree

open class Octree<N>(maxDepth: Int = DEFAULT_MAX_DEPTH, maxEntries: Int = DEFAULT_MAX_ENTRIES, bounds: BoundingBox, depth: Int, entryStrategy: (N) -> BoundingBox)(source)

Constructors

Link copied to clipboard
constructor(bounds: BoundingBox, depth: Int, entryStrategy: (N) -> BoundingBox)
constructor(maxDepth: Int = DEFAULT_MAX_DEPTH, maxEntries: Int = DEFAULT_MAX_ENTRIES, bounds: BoundingBox, depth: Int, entryStrategy: (N) -> BoundingBox)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun clear()
Link copied to clipboard
open fun insert(entry: N): Boolean
Link copied to clipboard
fun maxDepth(): Int
Link copied to clipboard
fun query(range: BoundingBox): List<N>
Link copied to clipboard
open fun remove(entry: N): Boolean