rectangle

rectangle(x: float, y: float | None = None) Polygon

A rectangle in the xy plane

Parameters:
xfloat

Width of the rectangle.

yfloat, optional

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

Returns:
Polygon