Difference between revisions of "Polygon Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|geometry}}
 
{{command|geometry}}
; Polygon[Point A, Point B, Point C,...]: Returns a polygon defined by the given points ''A'', ''B'', ''C'',
+
; Polygon[ <Point>, ..., <Point> ]
; Polygon[Point A, Point B, Number n]: Creates a regular polygon with ''n'' vertices (and one side between points ''A'' and ''B'').
+
: Returns a polygon defined by the given points.
; Polygon[List of points]: Returns a polygon defined by the points in the list.  
+
:{{example|1=<div><code><nowiki>Polygon[(1, 1), (3, 0), (3, 2), (0, 4)]</nowiki></code> yields a quadrilateral.</div>}}
 
+
; Polygon[ <Point>, <Point>, <Number of Vertices> ]
 +
: Creates a regular polygon with ''n'' vertices.
 +
:{{example|1=<div><code><nowiki>Polygon[(1, 1), (4, 1), 6]</nowiki></code> yields a hexagon.</div>}}
 +
; Polygon[ <List of Points> ]
 +
: Returns a polygon defined by the points in the list.  
 +
:{{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.}}

Revision as of 14:42, 8 August 2013



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