Register to reply

Finding angle of rotation relating two vectors to a third

by pvm
Tags: angle, relating, rotation, vectors
Share this thread:
May8-12, 02:49 PM
P: 9
I have 2 vectors in 3d space, v1 and v2.
I also have a vector representing as it happens the direction of the earth's magnetic field, called h.
i believe that v1 and v2 are related in that v2 is some rotation around h of v1.
i would like to find that angle of rotation.

i can't just find the shortest arc (by using the dot and cross products for eg), as this will not be around h in general.

To make matters worse, v1 and v2 wont necessarily be exactly on the same circle of rotation: just approximately on it. So really i'd like to find the angle of rotation around h that transforms v1 into v1', where v1' is the nearest point on that circle of rotation to v2, and THEN also find the length of the vector (gap) between v1' and v2.

Any ideas?
Phys.Org News Partner Science news on
'Smart material' chin strap harvests energy from chewing
King Richard III died painfully on battlefield
Capturing ancient Maya sites from both a rat's and a 'bat's eye view'
May12-12, 03:53 PM
P: 698
I would approach it this way. I would define an orthogonal Cartesian coordinate system, lettinng h be along the z direction. Then unit vectors of my three axes, in terms of your vectors, could be something like this:
\mathbf{\hat{z}} = \frac{\mathbf{h}}{ |\mathbf{h}|}.
\mathbf{\hat{y}} = \frac{\mathbf{h} \times \mathbf{v_1}}{|\mathbf{h} \times \mathbf{v_1}|}.
\mathbf{\hat{x}} = \mathbf{\hat{y}} \times \mathbf{\hat{z}}.
So that [itex]\mathbf{v_1}[/itex] only has x and z components; that is, the the projection of [itex]\mathbf{v_1}[/itex] onto the x-y plane coincides with the x axis.

Now, since the rotation is about the z axis, we just need to project [itex]\mathbf{v_2}[/itex] onto the x-y plane (that is, find the x and y components) and determine the angle
with repect to the x axis.

I hope that helps.

May14-12, 05:19 AM
P: 9
Jason - perfect. Thanks that's exactly what i needed. Had a feeling there would be a nice way to do it...

Many Thanks,

Register to reply

Related Discussions
Need Help Finding the Angle Between Two Vectors Introductory Physics Homework 2
Vectors: finding the angle between two vectors using dot product method when you don Calculus & Beyond Homework 6
Rotation at an angle - Tether ball (Finding length) Introductory Physics Homework 4
Finding an angle between two vectors Precalculus Mathematics Homework 3
Finding the angle in between 3D vectors.. Precalculus Mathematics Homework 2