multidimensional vector rotation and angle computation -- how?
Posted
by macias
on Stack Overflow
See other posts from Stack Overflow
or by macias
Published on 2010-04-08T11:14:27Z
Indexed on
2010/04/08
15:53 UTC
Read the original article
Hit count: 293
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.
© Stack Overflow or respective owner