def get_rectangle_coordinates(win):
    """
    Gets the coordinates of two opposite points that define a rectangle and
    returns them as Point objects.
    """
    point_1 = win.getMouse()
    point_2 = win.getMouse()
    return point_1, point_2