def rectRectIntersection(rect1Pos, rect1Dim, rect2Pos, rect2Dim):
    """
    A function to test for if two rectangles intersect.

    :param rect1Pos: The position of the first rectangle.
    :type rect1Pos: class:`pygame.math.Vector2`

    :param rect1Dim: The dimensions of the first rectangle.
    :type rect1Dim: class:`pygame.math.Vector2`

    :param rect2Pos: The position of the second rectangle.
    :type rect2Pos: class:`pygame.math.Vector2`

    :param rect2Dim: The dimensions of the second rectangle.
    :type rect2Dim: class:`pygame.math.Vector2`

    :return: A True/False value for if the two rectangles intersect.
    :rtype: bool
    """
    # Check to see if the two rectangles are NOT intersecting.
    if (
        rect1Pos.x > (rect2Pos.x + rect2Dim.x)
        or (rect1Pos.x + rect1Dim.x) < rect2Pos.x
        or rect1Pos.y > (rect2Pos.y + rect2Dim.y)
        or (rect1Pos.y + rect1Dim.y) < rect2Pos.y
    ):
        # There is no intersection.
        return False
    # Otherwise there is an intersection.
    return True