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

Fix rounding bug in Vector2.rotation #67

Merged
merged 5 commits into from
Oct 18, 2018
Merged

Conversation

nbraud
Copy link
Collaborator

@nbraud nbraud commented Oct 17, 2018

See #64

Cases where cos²ϑ + sin²ϑ ≉ 1 mean that repeated rotations
would diverge from the expected result, going either to 0
or infinity.
@nbraud
Copy link
Collaborator Author

nbraud commented Oct 17, 2018

This should also make the CI go green on #63, as it was failing due to the rotate() bug.

ppb_vector/vector2.py Outdated Show resolved Hide resolved
@AstraLuma AstraLuma merged commit aa63716 into ppb:master Oct 18, 2018
@nbraud nbraud deleted the fix-rotation branch October 19, 2018 00:22
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

Successfully merging this pull request may close these issues.

2 participants