-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a rotation property to RegularPolygon #55
Comments
Alternatively, the rotation could be specified using an axis passing through the center of the polygon (using either a direction vector, or a point) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Generating the vertices requires knowing the angle of the first vertex, which would be equal to the rotation property. It currently assumes that the first vertex is on the X-axis, which is fine for most cases, but doesn't work when sides == 4 and isn't ideal for pentagons. Alternatively, special case those two situations.
The text was updated successfully, but these errors were encountered: