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 nLaTeXn sides, centered at the origin, with radius 1.

calc.regular_polygon1.calc.png

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

calc.regular_polygon2.calc.png

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

calc.regular_polygon3.calc.png

Given an integer nLaTeXn, a point PLaTeXP and a real rLaTeXr, constructs a regular polygon of nLaTeXn sides, centered at PLaTeXP, with radius rLaTeXr.

calc.regular_polygon4.calc.png

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

calc.regular_polygon5.calc.png

Given an integer nLaTeXn and two points PLaTeXP and Q, constructs a regular polygon of nLaTeXn sides with an edge matching the segment PQ¯.

calc.regular_polygon6.calc.png