kvark / mint

Math Interoperability Types
MIT License
252 stars 20 forks source link

Reprise of #20: serde support #60

Closed Uriopass closed 3 years ago

Uriopass commented 3 years ago

Adds serde support through a serde feature. I do not know why the author's old PR was closed since it all seems to work perfectly. Only changed std:: to core:: to support no-std and other small things like readme update and travis serde test.

Fixes #41

Uriopass commented 3 years ago

Rebased, removed dependency on serde/derive, added tests for quaternions/euler angles, used simpler serialize/deserialize code piggybacking on AsRef and From, except for EulerAngles which sadly doesn't implement AsRef<[T; 3]>.