This old version of Proteopedia is provided for student assignments while the new version is undergoing repairs. Content and edits done in this old version of Proteopedia after March 1, 2026 will eventually be lost when it is retired in about June of 2026.


Apply for new accounts at the new Proteopedia. Your logins will work in both the old and new versions.


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