POV-Ray : Newsgroups : povray.advanced-users : Convert matrix to rotate ? : Convert matrix to rotate ? Server Time
30 Jul 2024 02:13:50 EDT (-0400)
  Convert matrix to rotate ?  
From: Rune
Date: 19 May 2000 10:06:41
Message: <39254a71@news.povray.org>
How do I convert a matrix, or just 3 vectors, into a rotation vector?

If I have a matrix where the x, y, and z vectors are all perpendicular to
each other, and left-handed, and there's no translation, how do I find out
which rotate statement will transform my object in the same way as the
matrix?

For example

matrix <0,0,-1,0,1,0,1,0,0,0,0,0>

will produce the same result as

rotate <0,90,0>

I need a function that can convert any matrix (or just 3 vectors) that
follows the requirements into a rotate vector. How could that be done? Is it
possible at all?

Greetings,

Rune

---
Updated April 25: http://rsj.mobilixnet.dk
Containing 3D images, stereograms, tutorials,
The POV Desktop Theme, 350+ raytracing jokes,
miscellaneous other things, and a lot of fun!


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.