Jeeeez

04-19-2002, 06:40 AM

Hello,

If I have 2 vectors and I want to align one so that it points in the same direction as the other, what would be the best way to do it.

I read of one method, that finds the rotation axis by taking the cross product of the 2 vectors. Then uses the dot product to find the rotation angle. Then, I imagine, you would need to construct a rotation matrix based on this new axis.

This is where I get messed up. If anyone has a link to a site that explains rotation matrix construction, or could explain it themselves, I would be most happy..

Thanks,

Jeremy

If I have 2 vectors and I want to align one so that it points in the same direction as the other, what would be the best way to do it.

I read of one method, that finds the rotation axis by taking the cross product of the 2 vectors. Then uses the dot product to find the rotation angle. Then, I imagine, you would need to construct a rotation matrix based on this new axis.

This is where I get messed up. If anyone has a link to a site that explains rotation matrix construction, or could explain it themselves, I would be most happy..

Thanks,

Jeremy