def hausdorff(A: np.ndarray, B: np.ndarray) -> float:
    'Computes the Hausdorff distance between two 2D polygons.\n\n    Args:\n        A: A matrix defining the first polygon.\n        B: A matrix defining the second polygon.\n    \n    Returns:\n        A float representing the Hausdorff distance.\n    '
    return geometry.Polygon(A).hausdorff_distance(geometry.Polygon(B))
Computes the Hausdorff distance between two 2D polygons.

Args:
    A: A matrix defining the first polygon.
    B: A matrix defining the second polygon.

Returns:
    A float representing the Hausdorff distance.
def hausdorff(A: np.ndarray, B: np.ndarray) -> float:
    'Computes the Hausdorff distance between two 2D polygons.\n\n    Args:\n        A: A matrix defining the first polygon.\n        B: A matrix defining the second polygon.\n    \n    Returns:\n        A float representing the Hausdorff distance.\n    '
    return geometry.Polygon(A).hausdorff_distance(geometry.Polygon(B))