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

Hypothesis: Add test for reflect() #63

Merged
merged 7 commits into from
Oct 18, 2018
Merged

Conversation

nbraud
Copy link
Collaborator

@nbraud nbraud commented Oct 13, 2018

Based off #62

The test failed without 248491f, because tests.utils.units returned not-quite-normalized vectors, because Vector2.rotate() rounded things off. (You can check, adding .normalize() to the returned value in units “fixes” it.)

@nbraud nbraud force-pushed the hypothesis/reflect branch from 6e18908 to 78b0f78 Compare October 13, 2018 03:50
Cases where cos²ϑ + sin²ϑ ≉ 1 mean that repeated rotations
would diverge from the expected result, going either to 0
or infinity.
@nbraud nbraud force-pushed the hypothesis/reflect branch from 9b1f728 to 23c9aeb Compare October 17, 2018 06:05
@nbraud
Copy link
Collaborator Author

nbraud commented Oct 17, 2018

This should be good to go once #67 is merged.

@AstraLuma AstraLuma merged commit 71faec7 into ppb:master Oct 18, 2018
@nbraud nbraud deleted the hypothesis/reflect 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