distance method
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);
Measure the distance (in parent's coordinate space) between this
component's anchor and the other
component's anchor.
double distance(PositionComponent other) =>
position.distanceTo(other.position);