Calculate the individual rotations


Calculate the individual rotations
#1
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. Sad 

Has anyone tried something like this before and can give me a solution or tips?
Thank you.

Manfred
Reply
RE: Calculate the individual rotations
#2
(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. Sad 

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
Reply
RE: Calculate the individual rotations
#3
Not sure if you're seeking the method or just the answer, but I use this tool:
https://www.andre-gaschler.com/rotationconverter/

It's open source, so you could presumably figure out how it works.
Reply
RE: Calculate the individual rotations
#4
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. Smile
Greetings

Manfred
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 1 Guest(s)