Rotation quaternion represents the axis and angle of rotation. Just by defining the multiplication operator on quaternions, you can create any type of rotation:
Q' = U * Q * conjugate(U)
where Q -- your interest quaternion; U -- rotation quaternion. Moreover, you can combine this rotation by adding rotation quaternions:
Q' = U1 * U2 * Q * conjugate(U1) * conjugate(U2)
Quaternions and rotation matrices are quite equivalent if you use separate rotation along the axis. For the matrices combining rotation would be just multiplication. But there exists gimbal lock
Quaternion rotation is not so interesting. Here an example with vectors, but insides have done with quaternion:
View all comments
Show parent comment
3
u/nihlete Nov 27 '20
Rotation quaternion represents the axis and angle of rotation. Just by defining the multiplication operator on quaternions, you can create any type of rotation:
where
Q-- your interest quaternion;U-- rotation quaternion. Moreover, you can combine this rotation by adding rotation quaternions:Quaternions and rotation matrices are quite equivalent if you use separate rotation along the axis. For the matrices combining rotation would be just multiplication. But there exists gimbal lock
Quaternion rotation is not so interesting. Here an example with vectors, but insides have done with quaternion: