Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.

Orientation of a vector

How can one compute the quaternions (orientation) of a vector defined by two points in space?