gabzim / circle-to-polygon

Receives a Coordinate, a Radius and a Number of edges and aproximates a circle by creating a polygon that fills its area
ISC License
113 stars 29 forks source link

numberOfSegments -> Options #29

Closed johachi closed 4 years ago

johachi commented 4 years ago

This PR makes it possible to pass either a number or an object as the third argument of to cricleToPolygon.

This PR in necessary to be able to add more options in the future (such as choosing between left- and right-hand rule, or getting a multi polygon instead of a regular polygon).

Changes:

OBS

this closes #13