Get the distance between two points.
double getDistance(double x0, double y0, double x1, double y1) => sqrt(pow(y1 - y0, 2) + pow(x1 - x0, 2));