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
fun BVHIntervals.toAABB3D(): AABB3D
fun BVHRect.toAABB3D(): AABB3D
Link copied to clipboard
fun Ray1D.toBVH(): BVHRay
fun Segment1D.toBVH(): BVHRect
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
fun BVHRay.toRay(): Ray
Link copied to clipboard
fun BVHRay.toRay1D(): Ray1D
Link copied to clipboard
fun BVHRay.toRay3D(): Ray3F
Link copied to clipboard
fun BVHIntervals.toRectangle(): Rectangle
fun BVHRect.toRectangle(): Rectangle
Link copied to clipboard
fun BVHRect.toSegment1D(): Segment1D
Link copied to clipboard
fun BVHVector.toVector2(): Vector2D
Link copied to clipboard
fun BVHVector.toVector3(): Vector3F
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)