def point_in_rect(rect, point):
    """Given a rectangle and a point, check if the point is inside the rectangle

    Parameters
    ----------
    rectangle : list
        coordinates of rectangle vertices
    
    point : tuple
        coordinates of point to check 

    Return
    ------
    within_rectangle : boolean
        whether or not the point is in the rectangle

    Examples
    --------
    Check whether or not a point exists within a rectangle 
    
    .. code-block:: python
    
        import cloudburst as cb

        rect = [(1, 4), (1, 8), (2, 8), (2, 4)]
        print(cb.point_in_rect(rect, (1,1)))
    """
    if point[0] < rect[0]:
        return False
    elif point[1] < rect[1]:
        return False
    elif point[0] > rect[2]:
        return False
    elif point[1] > rect[3]:
        return False
    else:
        return True
