Algosim documentation: polygon

polygon

Creates a polygon.

Syntax

Description

polygon(v) creates a polygon with vertices v, which is a sequence of 2D real vectors, a list of 2D real vectors, or an n×2 real matrix with each row representing a vertex.

The object is shown in the current diagram and a reference to the object is returned.

The AdjustVisual function can be used to adjust the appearance of the polygon. See Visual settings for a list of applicable settings.