Skip to main content

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

calc.regular_polygon1.calc.png
calc.regular_polygon1.plotter0.calc.png

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

calc.regular_polygon2.calc.png
calc.regular_polygon2.plotter0.calc.png

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

calc.regular_polygon3.calc.png
calc.regular_polygon3.plotter0.calc.png

Given an integer nn, a point PP and a real rr, constructs a regular polygon of nn sides, centered at PP, with radius rr.

calc.regular_polygon4.calc.png
calc.regular_polygon4.plotter0.calc.png

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

calc.regular_polygon5.calc.png
calc.regular_polygon5.plotter0.calc.png

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

calc.regular_polygon6.calc.png
calc.regular_polygon6.plotter0.calc.png