distance method

double distance(
  1. SpatialNode other
)

The distance between this node's absolute center and other's.

Implementation

double distance(SpatialNode other) => absoluteCenter.distance(other.absoluteCenter);