distance function

double distance(
  1. Point a,
  2. Point b
)

Helper functions for working with points. Calculates the distance between two points.

Implementation

/// Calculates the distance between two points.
double distance(Point a, Point b) => a.distanceTo(b);