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 , constructs a regular polygon of sides, centered at the origin, with radius 1.
Given an integer and a real , constructs a regular polygon of sides, centered at the origin, with radius .
Given an integer and a point , constructs a regular polygon of sides, centered at , with radius 1.
Given an integer , a point and a real , constructs a regular polygon of sides, centered at , with radius .
Given an integer and a segment , constructs a regular polygon of sides with an edge matching .
Given an integer and two points and , constructs a regular polygon of sides with an edge matching the segment .