LDraw.org Discussion Forums

Full Version: Novice question -- orientation/scale matrix.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How in mathematician way I can detect angle of rotation? From Line type 1 as simple|primitive file reference. The generic format is:

Code:
1 <colour> x y z a b c d e f g h i <file>
(2017-09-23, 16:37)Jarema Wrote: [ -> ]How in mathematician way I can detect angle of rotation? From Line type 1 as simple|primitive file reference. The generic format is:

Code:
1 <colour> x y z a b c d e f g h i <file>

There isn't a universal way of doing that you'll need to know some of the original parameters (e.g. was a Y-axis rotation).

You can extract an x,y,z angles (tilt/yaw/roll) but then you'll still need to know the order of the original angles, and even then you won't get the exact same results just values which give the same matrix.
What You can say about this references:
1 72 0.0 -8.0 -59.0 1 0 0 0 1 0 0 0 1 4282.dat
1 272 64.5 -74.5 -271.25 -0.9 -0.1 -0.1 -0.1 0.7 0.6 0 0.6 -0.7 3819.dat

According to The LDraw Unit Matrix It is like:

Code:
1 0 0 0
0 1 0 -8
0 0 1 -59
0 0 0 1

-0.9 -0.1 -0.1  64.5
-0.1  0.7  0.6 -74.5
0.0  0.6 -0.7 -271.25
0.0  0.0 0.0   0.1