distanceTo method

double distanceTo(
  1. Point<num> other
)

Implementation

double distanceTo(Point other) {
  return sqrt(pow(x - other.x, 2) + pow(y - other.y, 2));
}