Package-level declarations

Types

Link copied to clipboard
interface IQuadtree<T>
Link copied to clipboard
class Quadtree<T>(val bounds: Rectangle, val maxObjects: Int = 10, val mapper: (T) -> Vector2) : IQuadtree<T>

Quadtree

Link copied to clipboard
data class QuadtreeQuery<T>(val nearest: T, val neighbours: List<T>, val quads: List<Quadtree<T>>)
Link copied to clipboard
class ReadwriteQuadtree<T>(val qt: Quadtree<T>) : IQuadtree<T>

Wraps a quadtree with a ReentrantReadWriteLock, which allows multiple concurrent readers or one writer at a time.