def distance_between(x1, y1, x2, y2): """ Calculates the distance between 2 points. """ return np.hypot(x1 - x2, y1 - y2)