Difference between revisions of "Polygon Command"
From GeoGebra Manual
Line 11: | Line 11: | ||
:{{example|1=<div><code><nowiki>Polygon[{(0, 0), (2, 1), (1, 3)}]</nowiki></code> yields a triangle.</div>}} | :{{example|1=<div><code><nowiki>Polygon[{(0, 0), (2, 1), (1, 3)}]</nowiki></code> yields a triangle.</div>}} | ||
{{Note| See also [[Image:Tool Polygon.gif]] [[Polygon Tool|Polygon]] and [[Image:Tool Regular_Polygon.gif]] [[Regular Polygon Tool|Regular Polygon]] tools.}} | {{Note| See also [[Image:Tool Polygon.gif]] [[Polygon Tool|Polygon]] and [[Image:Tool Regular_Polygon.gif]] [[Regular Polygon Tool|Regular Polygon]] tools.}} | ||
+ | |||
+ | {{betamanual|version=5.0|;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). | ||
+ | }} |
Revision as of 08:48, 30 July 2014
- 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 Polygon and Regular Polygon tools.
Following text is about a feature that is supported only in GeoGebra 5.0.
|