nearest

fun nearest(center: Point3D, k: Int): List<A>(source)

The k nearest agents to center, ordered by distance. Implemented as progressive radius doubling on top of within: start with one cell, grow by Defaults.nearestRadiusGrowthFactor until enough candidates are found, then trim.