distanceTo method

double distanceTo(
  1. Point other
)

Returns the Euclidean distance to other

Implementation

double distanceTo(Point other) {
  return toVector().distanceTo(other.toVector());
}