tarcieri / micromath

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

quaternion: add `Quaternion::new` and make opaque #85

Closed tarcieri closed 3 years ago

tarcieri commented 3 years ago

Makes the internal representation of Quaternion opaque, and adds a Quaternion::new constructor.

It might make sense to make the quaternion feature depend on vector and use a Vector3d for the internal representation of quaternions.

Making the Quaternion struct opaque at least futureproofs this possibility.