distance2 method

double distance2(
  1. SpatialNode other
)

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

Implementation

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