rectangle

rectangle(x, y=None)

A rectangle in the xy plane

Parameters:
x : float

Width of the rectangle.

y : float, optional

Height of the rectangle. If not given, assumed equal to x.

Returns:
Polygon