def distance(pt1, pt2):
    """
    Simple 2d euclidean distances between two points.
    args:
        pt1: The first point.
        pt2: The second point.
    """
    return (pt1[0] - pt2[0]) ** 2 + (pt1[1] - pt2[1]) ** 2