distanceTo method

double distanceTo(
  1. Point<num> other
)

Computes the exact Euclidean distance to another Point.

Implementation

double distanceTo(Point<num> other) {
  return hypot(x - other.x, y - other.y);
}