within

fun within(center: Point2D, radius: Double): List<A>(source)

All agents whose position is within radius of center, ordered by distance. Includes any agent exactly at center. Uses the spatial hash: only buckets overlapping the query disk are scanned.