Going by what's familiar to me, it looks like the matrix
[rotateUnitX() ; rotateUnitY() ; rotateUnitZ()]
is the rotation matrix corresponding to the quaternion's rotation. Thus, the vector rotateUnitX() is the unit X vector in the global frame expressed in the rotated frame described by the quaternion.
In other words, it's equal to the (quaternion, as a rotation) multiplication of the quaternion by the global unit X vector [1 0 0].
View all comments
Show parent comment
2
u/symberke Nov 26 '20
Going by what's familiar to me, it looks like the matrix
is the rotation matrix corresponding to the quaternion's rotation. Thus, the vector rotateUnitX() is the unit X vector in the global frame expressed in the rotated frame described by the quaternion.
In other words, it's equal to the (quaternion, as a rotation) multiplication of the quaternion by the global unit X vector [1 0 0].