Package-level declarations
Functions
Link copied to clipboard
expect fun <T> buildKDTree(items: MutableList<T>, dimensions: Int, mapper: (T, Int) -> Double): KDTreeNode<T>
Builds a KD-Tree from a mutable list of items, using a mapper function to extract coordinate values for the specified dimensions.
actual fun <T> buildKDTree(items: MutableList<T>, dimensions: Int, mapper: (T, Int) -> Double): KDTreeNode<T>
actual fun <T> buildKDTree(items: MutableList<T>, dimensions: Int, mapper: (T, Int) -> Double): KDTreeNode<T>
Link copied to clipboard
Link copied to clipboard
Maps the specified dimension of an IntVector2 to a Double.
Link copied to clipboard
Constructs a KD-Tree for a collection of 2D vectors.
Constructs a KD-Tree from an iterable collection of 3-dimensional Vector3
objects.
Constructs a KD-Tree from the iterable collection of 4-dimensional vectors.
Link copied to clipboard
Maps a 2D vector's dimension to its corresponding value.
Link copied to clipboard
Maps a Vector3 object to one of its components (x, y, or z) based on the specified dimension.
Link copied to clipboard
Maps the components of a 4-dimensional vector based on the specified dimension index.