R
R
R6MF49T22013-10-24 15:25:55
Linear algebra
R6MF49T2, 2013-10-24 15:25:55

Calculation of rotation angles between two coordinate systems

There is an orthogonal three-dimensional coordinate system (OXYZ). There is another orthogonal coordinate system (OX`Y`Z`), rotated relative to the first one by unknown angles. The centers of the coordinate systems are the same. In the coordinate system (OXYZ) we know the coordinates of the vector OX` and the vector OZ`. It is necessary to find the rotation matrix for the transition from the coordinate system (OXYZ) to (OX`Y`Z`). Help me, I broke my whole brain. Or tell me which way to dig.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
X
xanep, 2013-10-25
@R6MF49T2

OMG, shocked by the answers about quaternions))
If the coordinates in XYZ
OX' = (x1, y1, z1)
OY' = (x2, y2, z2)
OZ' = (x3, y3, z3)
Then the transformation matrix from XYZ to X`Y`Z`
x1, x2, x3
y1, y2, y3
z1, z2, z3
Actually almost by definition

C
Cyapa, 2013-10-24
@Cyapa

Sorry if I'm wrong now, but you will have two rotation matrices. Around the X axis and around the Y axis. Here they are:
Around X:
image
Around Y:
image
Well, finding the angles of rotation is elementary:
image
After all, you have the coordinates OX` and OY` in the original system.

A
alexeip, 2013-10-24
@alexeip

Yes, a certain William Hamilton also racked his brains, along with his colleagues. True, it's not about that. But they did something that will also come in handy for us: en.wikipedia.org/wiki/%D0%9A%D0%B2%D0%B0%D1%82%D0%B5%D1%80%D0%BD%D0 %B8%D0%BE%D0%BD%D1%8B_%D0%B8_%D0%B2%D1%80%D0%B0%D1%89%D0%B5%D0%BD%D0%B8%D0%B5_ %D0%BF%D1%80%D0%BE%D1%81%D1%82%D1%80%D0%B0%D0%BD%D1%81%D1%82%D0%B2%D0%B0

O
OldFisher, 2013-10-24
@OldFisher

As far as I can remember, if we take the coordinates of the orts of the new system placed in the old one, then these coordinates will be the rows of the desired matrix.

V
VoidVolker, 2013-10-25
@VoidVolker

Here, the use of Euler angles, matrices and quaternions is described in detail and in an accessible language: www.rossprogrammproduct.com/translations/Matrix%20and%20Quaternion%20FAQ.htm

I
Illivion, 2013-10-25
@Illivion

Take a look here, it might help.
Stewart Platform Math

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question