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

Add option to user right-hand rule #37

Closed johachi closed 3 years ago

johachi commented 3 years ago

Description

Pass { rightHandRule: true } to use the right-hand rule.

Examples when the user might want to have the coordinates clockwise:

The circle returned using the right-hand rule is identical to the circle returned using the left-hand rule except that the circle is drawn in the opposite direction.

This closes #14