import math


def is_equal(aabb1, aabb2, rel_tol=1e-9, abs_tol=1e-7):
    """
    Check if two AABBs aabb1 and aabb2 are approximately equal.

    The two AABBs are considered equal if the min and max points of the AABBs are componentwise approximately equal.
    For the componentwise equality check, the standard function :func:`math.isclose <python:math.isclose>` is used,
    with the given relative and absolute tolerances.
    """
    for i in range(len(aabb1[0])):
        if not math.isclose(aabb1[0][i], aabb2[0][i], rel_tol=rel_tol, abs_tol=abs_tol):
            return False
        if not math.isclose(aabb1[1][i], aabb2[1][i], rel_tol=rel_tol, abs_tol=abs_tol):
            return False
    return True