PistonDevelopers / quaternion

A simple and type agnostic Rust library for quaternion math designed for reexporting
Apache License 2.0
13 stars 6 forks source link

Add `axis_orient` #12

Closed bvssvni closed 6 years ago

bvssvni commented 9 years ago

This is the same as axis_angle, except a unit 2D vector is used instead.

bvssvni commented 9 years ago

Since a quaternion takes half angles, the conversion needs a square root, and this makes it easier to compute the angle from the orientation vector instead.

bvssvni commented 9 years ago

Perhaps a 3D vector in the axis coordinate system would be more useful? It could mean "orient the object around this axis to look in this direction".

bvssvni commented 6 years ago

Closing because outdated.