S
S
sudo rm -rf /2020-08-22 17:45:20
Linear algebra
sudo rm -rf /, 2020-08-22 17:45:20

How to calculate the rotation parameters of one vector to another?

There is a certain family of vectors. One of them is called "master". We know its parameters.
We want to rotate the whole family along with the main one.
We know where the main vector should "look" after the turn.

How to compose a rotation matrix for such a case? We can only rotate around the axes, and it doesn't seem to have anything to do with the angle between the two vectors.

For example, there is a main vector (0, 250, 0), we want to make it point in the same direction as the vector (100, 100, -75). How to calculate parameters?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2020-08-22
@hint000

- Normalize the source and destination vectors, it will be easier.

We can only rotate around the axes
- consider projections of vectors on the XY, XZ, YZ planes; the angle between vectors on the plane is easy to calculate, turn to this angle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question