Regular polygon

Constructs a regular polygon.

regular_polygon(Integer)

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

regular_polygon(Integer, Real)

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

regular_polygon(Integer, Point)

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

regular_polygon(Integer, Point, Real)

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

regular_polygon(Integer, Segment)

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

regular_polygon(Integer, Point, Point)

Given an integer n and two points P and Q, constructs a regular polygon of n sides with an edge matching the segment stack P Q with bar on top.