(minx, miny, maxx, maxy, ccw=True)
return Polygon(coords)
Returns a rectangular polygon with configurable normal vector
Returns a rectangular polygon with configurable normal vector
Returns a rectangular polygon with configurable normal vector
def box(minx, miny, maxx, maxy, ccw=True):
    """Returns a rectangular polygon with configurable normal vector"""
    coords = [(maxx, miny), (maxx, maxy), (minx, maxy), (minx, miny)]
    if not ccw:
        coords = coords[::-1]
    return Polygon(coords)
def box ( minx , miny , maxx , maxy , ccw = True ) : coords = [ ( maxx , miny ) , ( maxx , maxy ) , ( minx , maxy ) , ( minx , miny ) ] if not ccw : coords = coords [ : : - 1 ] return Polygon ( coords )