def within_bounds(item, coords1, coords2):
    """
    Check if given item is within the plane specified by the two corner Coords
    :param Coords item:
    :param Coords coords1:
    :param Coords coords2:
    :return bool:
    """

    minx = min(coords1.x, coords2.x)
    maxx = max(coords1.x, coords2.x)

    miny = min(coords1.y, coords2.y)
    maxy = max(coords1.y, coords2.y)

    if item.x >= minx and item.x <= maxx and item.y >= miny and item.y <= maxy:
        return True

    return False