RegularPolygon
implementation
#82
Labels
priority:RELEASEBLOCKER
submodule:polygon
type:cleanup
Includes moving code, refactoring or reformat
type:enhancement
New feature or request
type:new_api
Adds new functionalities to the project
@Emc2356 has already done a PR that does exactly this, but not in what I hoped. #73
To recap, the function is supposed to create a polygon with sides of equal length.
I was thinking of either reimplementing his PR's design to look more like this:
Or we can do something like this
If
RegularPolygon
becomes a child class ofPolygon
, the user would be able to modify itsradius
,origin_pos
, etc on the go, where as if we implement the function method, the user would need to create a newPolygon
when they want to change its radius as well as using afor
loop to change every point to thePolygon
The text was updated successfully, but these errors were encountered: