understanding quaternions - spatial rotations

$\begingroup$

I would like to know if my understanding about quaternions is correct please:

lets say you have a vector in 3d space. You could rotate the x,y and-z frame on a fixed point so that it is parallel with this vector (source first sentences: ).

Once this is done you know how much you rotated (theta) the vector and theta represents the eules axis. Quaternions give a simple way to encode this axis–angle representation in four numbers.

And this is what the quaternion of a vector is.

Is this correct?

$\endgroup$ 2

1 Answer

$\begingroup$

A rotation of angle $\theta$ about axis $\vec v$ ($|\vec v| = 1$) can be represented by either the quaternion $q = \cos\left(\frac \theta 2\right) + \vec v \sin\left(\frac \theta 2\right)$ or the quaternion $-q$.

To rotate the vector $\vec w$ using the transformation represented by $q$, do $q\vec wq^{-1}$. Formally, the nonzero quaternions can act on vectors as rotations.

$\endgroup$

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like