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 the PartialEq impl for quaternions. #814

Merged
merged 2 commits into from Dec 18, 2020
Merged

Conversation

sebcrozet
Copy link
Member

The double-covering property should only be taken into account for UnitQuaternion instead of Quaternion itself.
As a result we no longer have the blancket impl of PartialEq for Unit<T>. Instead, it is implemented for each specialization of Unit. So this is a breaking change.

This also simplifies some of the trait bounds required by Quaternion for basic implementations like Hash, PartialEq, Eq, Copy and Clone. That way, we can auto-derive them.

The double-covering property should only be taken into account for `UnitQuaternion` instead of `Quaternion` itself.
@sebcrozet sebcrozet added the breaking change Fixing this issue, or merging this pull-request is likely to require breaking changes label Dec 18, 2020
@sebcrozet sebcrozet merged commit 88145b7 into dev Dec 18, 2020
@sebcrozet sebcrozet deleted the quaternion_partial_eq_fix branch December 18, 2020 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Fixing this issue, or merging this pull-request is likely to require breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant