“Polygon 指令”的版本间的差异
来自GeoGebra Manual
(en) |
|||
第1行: | 第1行: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|geometry}} |
− | ;Polygon | + | ; Polygon( <Point>, ..., <Point> ) |
− | :{{ | + | : Returns a polygon defined by the given points. |
− | ;Polygon | + | :{{example|1=<code><nowiki>Polygon((1, 1), (3, 0), (3, 2), (0, 4))</nowiki></code> yields a quadrilateral.}} |
− | :{{ | + | ; Polygon( <Point>, <Point>, <Number of Vertices> ) |
− | ;Polygon | + | : Creates a regular polygon with ''n'' vertices. |
− | + | :{{example|1=<code><nowiki>Polygon((1, 1), (4, 1), 6)</nowiki></code> yields a hexagon.}} | |
− | + | ; Polygon( <List of Points> ) | |
− | ; Polygon | + | : Returns a polygon defined by the points in the list. |
− | + | :{{example|1=<code><nowiki>Polygon({(0, 0), (2, 1), (1, 3)})</nowiki></code> yields a triangle.}} | |
+ | ;Polygon( <Point>, <Point>, <Number of Vertices n>, <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 [[ | + | {{Note| See also [[File:Mode polygon.svg|link=|24px]] [[Polygon Tool|Polygon]] and [[File:Mode regularpolygon.svg|link=|24px]] [[Regular Polygon Tool|Regular Polygon]] tools.}} |
2021年9月2日 (四) 07:15的版本
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版。
- Polygon( <Point>, ..., <Point> )
- Returns a polygon defined by the given points.
- 範例:
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.
- 範例:
Polygon((1, 1), (4, 1), 6)
yields a hexagon. - Polygon( <List of Points> )
- Returns a polygon defined by the points in the list.
- 範例:
Polygon({(0, 0), (2, 1), (1, 3)})
yields a triangle. - Polygon( <Point>, <Point>, <Number of Vertices n>, <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).
備註: See also Polygon and Regular Polygon tools.