Skip to content
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

Open
bfoz opened this issue May 19, 2013 · 1 comment
Open

Add a rotation property to RegularPolygon #55

bfoz opened this issue May 19, 2013 · 1 comment

Comments

@bfoz
Copy link
Owner

bfoz commented May 19, 2013

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.

@bfoz
Copy link
Owner Author

bfoz commented Jul 14, 2013

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant