Novice question -- orientation/scale matrix. - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: LDraw File Processing and Conversion (https://forums.ldraw.org/forum-22.html) +--- Thread: Novice question -- orientation/scale matrix. (/thread-22361.html) |
Novice question -- orientation/scale matrix. - Jarema - 2017-09-23 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> RE: Novice question -- orientation/scale matrix. - Roland Melkert - 2017-09-23 (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: 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. RE: Novice question -- orientation/scale matrix. - Jarema - 2017-09-23 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 |