Geode::RegularPolygon
Inherits Geode::Polygon < Reference < Object
The RegularPolygon class represents a polygon with sides of constant length separated by angles of constant measure.
Constructors
new(sides : Int, circumcircle : Circle = Circle.new, rotation : Angle = Angle.new(0))
Creates a new RegularPolygon.
Instance methods
circumcircle
Returns the circumcircle of the polygon, i.e. the circle that wholly surrounds the polygon and all its vertices.