NearestSpatialNode<T extends SpatialNode> extension

on

Methods

nearest(SpatialNode node) → T?

Available on Iterable<T>, provided by the NearestSpatialNode extension

The element nearest to node, or null if this is empty.
nearestTo(Vector2 position, {Node? excluded}) → T?

Available on Iterable<T>, provided by the NearestSpatialNode extension

The element nearest to position, or null if this is empty.