[Media] quaternion-core: A simple quaternion library written in Rust
![[Media] quaternion-core: A simple quaternion library written in Rust](https://i.redd.it/b0jq8xr1fulg1.png)
Hey r/rust!
I created quaternion-core and wanted to share it here.
This crate provides quaternion operations and conversions between several rotation representations (as shown in the attached image). It's designed to be simple and practical.
Features:
- Generic functions supporting both f32 and f64
- Works in no_std environments
- Can convert between 24 different Euler angles (I don't think many libraries can do this!)
I started building it for attitude estimation on microcontrollers, so the functions are designed to minimize computational cost without overcomplicating the implementation.
- crates.io: https://crates.io/crates/quaternion-core
I also made a Tennis Racket Theorem simulation using this crate:
Thanks for reading, and I hope you give it a try!