Jmol/Quaternions

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
Line 48: Line 48:
Here is an example:
Here is an example:
-
<jmol><jmolButton><script>q0 = quaternion(); qr = quaternion({1 1 0}, 90); rotate quaternion @q</script><text>rotate all the way</text></jmolButton></jmol>
+
<jmol><jmolButton><script>q0 = quaternion(); qr = quaternion({1 1 0}, 90); rotate @qr</script><text>rotate all the way</text></jmolButton></jmol>
<jmol><jmolButton><script>moveto 0 quaternion @q0</script><text>back to last orientation</text></jmolButton></jmol>
<jmol><jmolButton><script>moveto 0 quaternion @q0</script><text>back to last orientation</text></jmolButton></jmol>

Revision as of 14:50, 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