Difference between revisions of "Talk:Quaternion"

From Second Life Wiki
Jump to navigation Jump to search
m (signed my misfeat)
(Other problem with this page)
Line 3: Line 3:
     Q' = zQz<sup>-1</sup>
     Q' = zQz<sup>-1</sup>


Strangely enough, I tried to "multiply" a vector by a rotation in LSL, and it always gives the same result as
but LSL proceeds in reverse order :


     Q' = z<sup>-1</sup>Qz
     Q' = z<sup>-1</sup>Qz


Has someone got an explanation for that mistery?
Just give a try if you don't believe me... ;-)


Catherine Pfeffer, 2007-12-06
-- Catherine Pfeffer, 2007-12-06
 
 
This text has two shemas at the end. If you look well at it, the 90° rotation in the first schema and
in the second schema rotate in opposite directions ;-).
 
It's the second schema that is correct (LSL follows right-hand rule for direction of positive rotations)
 
-- Catherine Pfeffer, 2007-12-07

Revision as of 05:28, 7 December 2007

This text says that you rotate a vector Q by a rotation z with the formula :

    Q' = zQz-1

but LSL proceeds in reverse order :

   Q' = z-1Qz

Just give a try if you don't believe me... ;-)

-- Catherine Pfeffer, 2007-12-06


This text has two shemas at the end. If you look well at it, the 90° rotation in the first schema and in the second schema rotate in opposite directions ;-).

It's the second schema that is correct (LSL follows right-hand rule for direction of positive rotations)

-- Catherine Pfeffer, 2007-12-07