# Difference between revisions of "Polygon Command"

Jump to: navigation, search

##### Polygon

This article is about GeoGebra command.

##### Command Categories (All commands)

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.
Polygon[ <Point>, <Point>, <Number of Vertices>, <Direction> ]
Creates a regular polygon with n vertices, and directed by the direction (e.g. a plane to which the polygon will be parallel, if possible).
Note: See also Polygon and Regular Polygon tools.
• GeoGebra
• Help
• Partners
• Contact us
• Feedback & Questions
• This email address is being protected from spambots. You need JavaScript enabled to view it.
• +43 677 6137 2693
© 2021 International GeoGebra Institute