Package-level declarations

Types

Link copied to clipboard
class BVHNode2D(var bounds: Rectangle = Rectangle.EMPTY, var left: BVHNode2D? = null, var right: BVHNode2D? = null, var index: Int = -1)

Functions

Link copied to clipboard

Finds all intersecting pairs of leaf nodes in a 2D Bounding Volume Hierarchy (BVH).

fun findIntersectingPairs(a: BVHNode2D, b: BVHNode2D, result: MutableList<Pair<Int, Int>> = mutableListOf()): List<Pair<Int, Int>>

Finds and collects pairs of intersecting leaf-nodes between two bipartite sets