findAllInRadius

fun findAllInRadius(query: T, radius: Double, includeQuery: Boolean = false): List<T>(source)

Retrieves all items within a specified radius around a query point in the KD-Tree.

This method searches the KD-Tree to find all items whose distance to the specified query point does not exceed the given radius. Optionally, the query point itself may be included or excluded from the results.

Return

A list of all items within the specified radius from the query point.

Parameters

query

The query point around which items will be searched.

radius

The maximum radius within which items will be included in the results.

includeQuery

If true, the query point itself may be included in the results. If false, the query point is excluded. Default is false.