distanceTo method

double distanceTo(
  1. NmGalaxyPoint other
)

Distance to another position in normalized space

Implementation

double distanceTo(NmGalaxyPoint other) {
  final dx = x - other.x;
  final dy = y - other.y;
  return math.sqrt(dx * dx + dy * dy);
}