Rotating a vector around an axis with quaternion
问题 I am trying to learn 3d programming, and right now I am trying to understand how to use quaternions to rotate a vector around an axis. As far as I understand, to rotate a vector v around an axis a, after converting both vectors to quaternions, we multiply v by a, then the product by the conjugate of a. I want to rotate v(0,1,0) around a(1,0,0) by 90 degrees, and I should get a resulting vector v(0,0,1) (or 0,0,-1, depending on the direction of the rotation). I am not getting the output I am