tarcieri / micromath

Embedded Rust arithmetic, 2D/3D vector, and statistics library
Apache License 2.0
401 stars 21 forks source link

Quaternion to Euler Angles conversion #90

Closed korken89 closed 3 years ago

korken89 commented 3 years ago

Hi,

I added the bog-standard Quaternion -> Euler angles conversion (https://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles) Not sure how "unity" constraints are viewed in this library, so I went with the simplest approach.

codecov-commenter commented 3 years ago

Codecov Report

Merging #90 (5aab6d1) into main (bbee5cf) will decrease coverage by 0.44%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #90      +/-   ##
==========================================
- Coverage   56.90%   56.45%   -0.45%     
==========================================
  Files          38       38              
  Lines         884      891       +7     
==========================================
  Hits          503      503              
- Misses        381      388       +7     
Impacted Files Coverage Δ
src/quaternion.rs 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update bbee5cf...5aab6d1. Read the comment docs.

tarcieri commented 3 years ago

Thanks!