Let's assume that I have a vector, say vectorA=[1,2,3,4]
. I can rotate vectorA by some angle alpha
in some direction
so that it becomes vectorB=[6,7,8,9]
after the rotation. Given the two vectors, vectorA and vectorB, how can I work out the angle and direction of rotation?
For the angle, that's simple enough: I can use any one of the answers to this question.
For the direction (clockwise/counter-clockwise), I am a little clueless. I know how to do it in 2 dimensions and in 3 dimensions. How do I do this for N dimensions, i.e. 4D and beyond?