Hello,
I am trying to calculate the individual rotations (Euler angles) around the three axes from the rotation matrix.
I have also tried it with quaternions, but somehow it doesn't work.
Has anyone tried something like this before and can give me a solution or tips?
Thank you.
Manfred
(2024-04-08, 20:18)Manfred Schaefer Wrote: [ -> ]Hello,
I am trying to calculate the individual rotations (Euler angles) around the three axes from the rotation matrix.
I have also tried it with quaternions, but somehow it doesn't work.
Has anyone tried something like this before and can give me a solution or tips?
Thank you.
Manfred
The LDraw transformation matrix is a general transformation matrix, so it is possible that what you want is not possible for some arbitrary one. Having said that, the matrix applied to parts should always contain only rotations and translations, so hopefully this StackOverflow answer helps:
https://stackoverflow.com/questions/1502...x#15029416
Thank you for answers.
Sorry for the long delay.
I couldn't solve the issue to calculate the Euler angles.
There are some points which make this item hard to solve for me.
One point is that some sets of Euler angles lead to one rotation matrix.
Another point is one entry of the rotation matrix represent the sin angle of one axis. But the value for 45° and 135° is the same for example.
I don't give up, may be I will found a solution in the future.
Greetings
Manfred