Octree

open class Octree<N>(maxDepth: Int = DEFAULT_MAX_DEPTH, maxEntries: Int = DEFAULT_MAX_ENTRIES, bounds: BoundingBox, depth: Int, entryStrategy: (N) -> BoundingBox, storeOutOfBoundsEntries: Boolean = false) : Iterable<N> (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, storeOutOfBoundsEntries: Boolean = false)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun allEntries(): Set<N>
Link copied to clipboard
open fun clear()
Link copied to clipboard
open fun insert(entry: N): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<N>
Link copied to clipboard
fun maxDepth(): Int
Link copied to clipboard
Link copied to clipboard
open fun remove(entry: N): Boolean
Link copied to clipboard
open fun resize(newBounds: BoundingBox)