RegularPolygon

RegularPolygon[n]

gives the regular polygon with n vertices equally spaced around the unit circle.

RegularPolygon[r,n]

gives the regular polygon of radius r.

RegularPolygon[{r,θ1},n]

starts at angle θ1 with respect to the axis.

RegularPolygon[{x,y},rspec,n]

centers the polygon at {x,y}.

Details

Examples

open allclose all

Basic Examples  (3)

A pentagon:

In[1]:=
Click for copyable input
Out[1]=

Different styles applied to RegularPolygon:

In[1]:=
Click for copyable input
Out[1]=

Area and centroid:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (17)

Applications  (4)

Properties & Relations  (3)

Neat Examples  (2)

See Also

CirclePoints  Polygon  Triangle  Rectangle

Introduced in 2015
(10.2)