Re: Argh - vector problem



Fred

If your rotation is about the y axis, then you can do the dot product in the xz plane to find the angle of rotation

acos(dot([x',z'],[x,z])/(norm([x',z'])*norm([x,z]))

(I haven't worried about Matlab syntax too much here!

The general case is more complicated.

Also be careful, I think your rotation goes -10 degrees about y, make sure you have a right hand set.

Valerie
.



Relevant Pages