multidimensional vector rotation and angle computation -- how?
- by macias
Input: two multidimensional (for example dim=8) vectors a and b.
I need to find out the "directed" angle (0-2*Pi, not 0-Pi) between those vectors a and b. And if they are not parallel I need to rotate vector b in plane a,b by "directed" angle L. If they are parallel, plane does not matter, but angle of rotation is still the same L.
For 2d and 3d this is quite easy, but for more dimensions I am lost, I didn't find anything on google, and I prefer using some already proved&tested equations (avoiding errors introduced by my calculations :-D).
Thank you in advance for tips, links, etc.
Edit: dimension of the space is the same as dimension of the vectors.