moble / quaternionic

Interpret numpy arrays as quaternionic arrays with numba acceleration
MIT License
84 stars 7 forks source link

quaternion or quaternionic? #45

Closed Hao-Starrr closed 7 months ago

Hao-Starrr commented 7 months ago

Hi moble, Thanks a lot for your work. It solved me big problems. As the title, which lib do you recommend us to use? quaternion or quaternionic?

Thank you.

moble commented 7 months ago

Thanks for your nice words.

I am still maintaining both, and both have pretty decent numbers of users, so new issues do get reported and fixed. So I think either one is a reasonable choice. Personally, I use quaternionic for all my new work. I've added a few more features to it by now, and it works nicely with numba. I don't always need numba, but when I do, it's nice to be able to use it more directly.

Hao-Starrr commented 7 months ago

I notice it seem quaternionic doesnot provide mean while quaternion doesnot have interpolation. Do I miss something?

moble commented 7 months ago

quaternion does provide slerp and squad, but it looks like I never ported mean_rotor_in_chordal_metric over to quaternionic. It's pretty simple though: just add (or integrate) the quaternions, and then normalize.