math - Finding quaternion representing the rotation from one vector to another -
I have two vectors v and v Is there a way to detect the representation of U to V to the quadrilateral?
quaternary q; Vector A = crossproduct (v1, v2); Q.xyz = a; Q.w = sqrt ((v1.Length ^ 2) * (v2.Length ^ 2)) + Doproteproduct (v1, v2);
Do not forget to generalize Q
Richard is right that there is not a unique rotation, but should give the "least arc" above perhaps what you want
Comments
Post a Comment