# Difference between revisions of "Polygon Command"

From GeoGebra Manual

m (removed betamanual) |
m |
||

Line 1: | Line 1: | ||

− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude> |

{{command|geometry}} | {{command|geometry}} | ||

; Polygon[ <Point>, ..., <Point> ] | ; Polygon[ <Point>, ..., <Point> ] | ||

Line 13: | Line 13: | ||

: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). | :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 [[Image: | + | {{Note| See also [[Image:Mode polygon.png]] [[Polygon Tool|Polygon]] and [[Image:Mode regularpolygon.png]] [[Regular Polygon Tool|Regular Polygon]] tools.}} |

## Revision as of 08:51, 31 July 2015

- 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.