Package-level declarations

Types

Link copied to clipboard
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.

Link copied to clipboard
open class BVH2D<T>(val allowUpdateObjects: Boolean = true)

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

Link copied to clipboard
open class BVH3D<T>(val allowUpdateObjects: Boolean = true)

A Bounding Volume Hierarchy implementation for 3D. It uses AABB3D to describe volumes and MRay3D for raycasting.

Link copied to clipboard
data class Ray1D(val start: Double, val dir: Double)
Link copied to clipboard
data class Segment1D(val start: Double, val end: Double)

Functions

Link copied to clipboard
inline operator fun <T> Array2<T>.get(p: Point): T
inline operator fun <T> Array2<T>.get(p: PointInt): T
Link copied to clipboard
inline operator fun <T> Array2<T>.set(p: Point, value: T)
inline operator fun <T> Array2<T>.set(p: PointInt, value: T)
Link copied to clipboard
Link copied to clipboard
fun AABB3D.toBVH(out: BVHIntervals = BVHIntervals(3)): BVHRect
fun Ray.toBVH(out: BVHIntervals = BVHIntervals(2)): BVHRay
fun Ray3F.toBVH(out: BVHIntervals = BVHIntervals(3)): BVHRay
fun Rectangle.toBVH(out: BVHIntervals = BVHIntervals(2)): BVHRect
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T> Array2<T>.tryGet(p: Point): T?
inline fun <T> Array2<T>.tryGet(p: PointInt): T?
Link copied to clipboard
inline fun <T> Array2<T>.trySet(p: Point, value: T)
inline fun <T> Array2<T>.trySet(p: PointInt, value: T)