-
Notifications
You must be signed in to change notification settings - Fork 44
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 Slerp for 3D rotations #252
Conversation
Codecov Report
@@ Coverage Diff @@
## master #252 +/- ##
==========================================
+ Coverage 88.82% 88.84% +0.02%
==========================================
Files 16 16
Lines 1602 1605 +3
==========================================
+ Hits 1423 1426 +3
Misses 179 179
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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 your contribution! I added comments about the return types and one-axis rotations.
Co-authored-by: Yuto Horikawa <[email protected]>
Co-authored-by: Yuto Horikawa <[email protected]>
Thank you for reviewing. I've update the PR following your advice. Can you look at the changes and give me feedback again? |
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.
LGTM!
Thank you! |
I haven't been active here lately, but I thought I'd pop in and say thanks @hyrodium for doing a great job maintaining this package. It's amazing to have people like you step in and care for code I once worked on, but don't have time for right now. Thanks ❤️ (Also thanks @bicycle1885 for the specific contribution here, this looks nice :-) ) |
This PR adds
slerp
for 3D rotations. The method forQuatRotation
s is the canonical implementation and methods for other rotation types are implemented via this canonical one.I don't know which representation it should return for arguments with mixed types. The proposed one returns
typeof(r1)
forslerp(r1, r2, t)
.Closes #214.