def within_bounds(
    x: float, y: float, min_x: float, min_y: float, max_x: float, max_y: float
):
    """
    Are x and y within the bounds.

    >>> within_bounds(1, 1, 0, 0, 2, 2)
    True
    """
    return (min_x <= x <= max_x) and (min_y <= y <= max_y)