distance method

double distance(
  1. PositionComponent other
)
inherited

Measure the distance (in parent's coordinate space) between this component's anchor and the other component's anchor.

Implementation

double distance(PositionComponent other) =>
    position.distanceTo(other.position);