Polygon Command

From GeoGebra Manual
Revision as of 08:48, 30 July 2014 by Sarah. (talk | contribs)
Jump to: navigation, search



Polygon[ <Point>, ..., <Point> ]
Returns a polygon defined by the given points.
Example:
Polygon[(1, 1), (3, 0), (3, 2), (0, 4)] yields a quadrilateral.
Polygon[ <Point>, <Point>, <Number of Vertices> ]
Creates a regular polygon with n vertices.
Example:
Polygon[(1, 1), (4, 1), 6] yields a hexagon.
Polygon[ <List of Points> ]
Returns a polygon defined by the points in the list.
Example:
Polygon[{(0, 0), (2, 1), (1, 3)}] yields a triangle.
Note: See also Tool Polygon.gif Polygon and Tool Regular Polygon.gif Regular Polygon tools.
© 2021 International GeoGebra Institute