|
|
In povray.general Ron Parker <ron### [at] povrayorg> wrote:
: You might be surprised. Except for the arbitrary transforms (which make
: the problem different, but possibly not much more difficult) it's relatively
: easy to decompose a matrix into rotations, scales, and translates. I wrote
: the whole mess up for someone in c.g.r.r. a few years ago; I think I might
: still have it in my outbox.
How do you decompose a matrix transformation which causes shearing to
rotations, scales and translates?
For example think about this:
scale <1,.5,.8>
rotate <30,45,20>
scale <.8,.25,.5>
translate <2,3,4>
rotate <15,20,80>
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|