-
Notifications
You must be signed in to change notification settings - Fork 37
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
Remove norm field and update normalization functions #108
Conversation
Codecov Report
@@ Coverage Diff @@
## main #108 +/- ##
==========================================
- Coverage 98.67% 98.44% -0.24%
==========================================
Files 1 1
Lines 227 193 -34
==========================================
- Hits 224 190 -34
Misses 3 3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I agree with removing |
For that matter, should we remove |
I think the function can be removed too. I also think that the name of the function is not common and inappropriate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a minor suggestion on a dosctring. I'll review other points after resolving the conflicts.
@hyrodium this should be ready for final review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the updates! LTGM:+1:
This PR primarily removes the
:norm
field ofQuaternion
and updates all code and tests accordingly (fixes #60). It also:normalize
overload in favor ofsign
. (fixes Drop normalize for quaternions #69)renamesnormalizea
tosign_abs
(exported)normalizea
argq
normalizeq
(only used internally forargq
and makes no sense apart from it)The first 2 are breaking.
I wonder also if we should removesign_abs
. We don't use it internally, and something likesign_abs
iss general-purpose and unrelated to quaternions.Supersedes #75