distance2 method

double distance2(
  1. TransformNode other
)

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

Implementation

double distance2(TransformNode other) => absolutePosition.distance2(other.absolutePosition);