def __init__ (self, ul, lr):
    """Rect(Point, Point) -> Rect

    Creates a new rectangle.
    """
    self.ul = Point(min(ul.x, lr.x), min(ul.y, lr.y))
    self.lr = Point(max(ul.x, lr.x), max(ul.y, lr.y))
def __init__ ( self , ul , lr ) : self . ul = Point ( min ( ul . x , lr . x ) , min ( ul . y , lr . y ) ) self . lr = Point ( max ( ul . x , lr . x ) , max ( ul . y , lr . y ) )
Rect(Point, Point) -> Rect

    Creates a new rectangle.