distance method

double distance()

Implementation

double distance() {
  return start.distanceTo(end);
}