Polygon.from_rectangle

classmethod Polygon.from_rectangle(point, width, height)[source]

Construct a rectangle.

Parameters:
pointcompas.geometry.Point

The lower left corner of the rectangle.

widthfloat

The width of the rectangle.

heightfloat

The height of the rectangle.

Returns:
compas.geometry.Polygon

A rectangle.