def translate(rect, x, y, width=<NUM_LIT:1>):
return ((rect[<NUM_LIT:0>][<NUM_LIT:0>]+x, rect[<NUM_LIT:0>][<NUM_LIT:1>]+y), (rect[<NUM_LIT:1>][<NUM_LIT:0>]+x, rect[<NUM_LIT:1>][<NUM_LIT:1>]+y),<EOL>(rect[<NUM_LIT:2>][<NUM_LIT:0>]+x+width, rect[<NUM_LIT:2>][<NUM_LIT:1>]+y), (rect[<NUM_LIT:3>][<NUM_LIT:0>]+x+width, rect[<NUM_LIT:3>][<NUM_LIT:1>]+y))<EOL>
Given four points of a rectangle, translate the
rectangle to the specified x and y coordinates and,
optionally, change the width.

:type rect: list of tuples
:param rect: Four points describing a rectangle.
:type x: float
:param x: The amount to shift the rectangle along the x-axis.
:type y: float
:param y: The amount to shift the rectangle along the y-axis.
:type width: float
:param width: The amount by which to change the width of the
              rectangle.