# Regular polygon

Constructs a regular polygon.

## Syntax

```regular_polygon(Integer)
```
```regular_polygon(Integer, Real)
```
```regular_polygon(Integer, Point)
```
```regular_polygon(Integer, Point, Real)
```
```regular_polygon(Integer, Segment)
```
```regular_polygon(Integer, Point, Point)
```

## Description

Given an integer $n$, constructs a regular polygon of $n$ sides, centered at the origin, with radius 1.

Given an integer $n$ and a real $r$, constructs a regular polygon of $n$ sides, centered at the origin, with radius $r$.

Given an integer $n$ and a point $P$, constructs a regular polygon of $n$ sides, centered at $P$, with radius 1.

Given an integer $n$, a point $P$ and a real $r$, constructs a regular polygon of $n$ sides, centered at $P$, with radius $r$.

Given an integer $n$ and a segment $s$, constructs a regular polygon of $n$ sides with an edge matching $s$.

Given an integer $n$ and two points $P$ and $Q$, constructs a regular polygon of $n$ sides with an edge matching the segment $\overline{PQ}$.