BVH1D

open class BVH1D<T>(val allowUpdateObjects: Boolean = true)

A Bounding Volume Hierarchy implementation for 1D. It uses Segment1D to describe volumes and Ray for raycasting.

Constructors

Link copied to clipboard
constructor(allowUpdateObjects: Boolean = true)

Properties

Link copied to clipboard
Link copied to clipboard
val bvh: BVH<T>

Functions

Link copied to clipboard
fun debug()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun insertOrUpdate(segment: Segment1D, obj: T)
Link copied to clipboard
fun intersect(ray: Ray1D, returnArray: FastArrayList<BVH.IntersectResult<T>> = fastArrayListOf()): FastArrayList<BVH.IntersectResult<T>>
Link copied to clipboard
fun intersectRay(ray: Ray1D, rect: Rectangle? = null): BVHRect?
Link copied to clipboard
fun remove(obj: T)
fun remove(segment: Segment1D, obj: T? = null): FastArrayList<BVH.Node<T>>
Link copied to clipboard
fun search(segment: Segment1D, returnArray: FastArrayList<BVH.Node<T>> = fastArrayListOf()): FastArrayList<BVH.Node<T>>