def _is_within_bounding_box(x, y, minx, miny, maxx, maxy):
    """
    Check if the `x`/`y` coordinate is within the bounding box, defined
    by the `minx`/`miny` coordinate and the `maxx`/`maxy` coordinate.

        >>> _is_within_bounding_box(0.5, 0.5, 0.0, 0.0, 1.0, 1.0)
        True

        >>> _is_within_bounding_box(0.5, 0.5, 1.0, 1.0, 0.0, 0.0)
        True

        >>> _is_within_bounding_box(0.5, 0.5, 1.0, 0.0, 0.0, 1.0)
        True

        >>> _is_within_bounding_box(0.5, 0.5, 0.0, 1.0, 1.0, 0.0)
        True

        >>> _is_within_bounding_box(2.0, 2.0, 0.0, 0.0, 1.0, 1.0)
        False

        >>> _is_within_bounding_box(2.0, 2.0, 1.0, 1.0, 0.0, 0.0)
        False

        >>> _is_within_bounding_box(2.0, 2.0, 1.0, 0.0, 0.0, 1.0)
        False

        >>> _is_within_bounding_box(2.0, 2.0, 0.0, 1.0, 1.0, 0.0)
        False

    Beware:
        - latitude is `y` and longitude is `x`
        - All parameters must use the same geodesic projection system
    """
    return (
        min(minx, maxx) <= x <= max(minx, maxx) and
        min(miny, maxy) <= y <= max(miny, maxy)
    )