def get_rectangle(origin, end):
    """Return all points of rectangle contained by origin and end."""
    size_x = abs(origin[0]-end[0])+1
    size_y = abs(origin[1]-end[1])+1
    rectangle = []
    for x in range(size_x):
        for y in range(size_y):
            rectangle.append((origin[0]+x, origin[1]+y))
    return rectangle