def poly_midpoint_distance(poly_a, poly_b):
    """Polygon distance function that takes the euclidean distance between polygon midpoints."""
    return (poly_a.get_centerpoint() - poly_b.get_centerpoint()).length
