Jmol/Quaternions

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
Line 60: Line 60:
Choosing x = 1, y = -0.5, z = 0 and tilt = 10, the buttons illustrate tilting in a different direction.
Choosing x = 1, y = -0.5, z = 0 and tilt = 10, the buttons illustrate tilting in a different direction.
-
<jmol><jmolButton><script>r = quaternion({1 0.5 0},10); tilted = r * s; moveto 1 quaternion @tilted </script><text>tilt 10 degrees away from view in another direction</text></jmolButton></jmol>
+
<jmol><jmolButton><script>r = quaternion({1 -0.5 0},10); tilted = r * s; moveto 1 quaternion @tilted </script><text>tilt 10 degrees away from view in another direction</text></jmolButton></jmol>
<jmol><jmolButton><script>moveto 1 quaternion @s </script><text>back to last orientation</text></jmolButton></jmol>
<jmol><jmolButton><script>moveto 1 quaternion @s </script><text>back to last orientation</text></jmolButton></jmol>

Revision as of 16:38, 25 July 2019

Drag the structure with the mouse to rotate

Resources

http://sacredsoftware.net/tutorials/quaternion.html

Proteopedia Page Contributors and Editors (what is this?)

Karsten Theis

Personal tools