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 57: Line 57:
Choosing x = 1, y = 0.5, z = 0 and tilt = 10, the buttons illustrate the commands.
Choosing x = 1, y = 0.5, z = 0 and tilt = 10, the buttons illustrate the commands.
 +
<jmol><jmolButton><script>s = quaternion(); r = quaternion({1 0.5 0},10); tilted = r * s; moveto 1 quaternion @tilted </script><text>tilt 10 degrees away from view</text></jmolButton></jmol>
<jmol><jmolButton><script>s = quaternion(); r = quaternion({1 0.5 0},10); tilted = r * s; moveto 1 quaternion @tilted </script><text>tilt 10 degrees away from view</text></jmolButton></jmol>
Line 86: Line 87:
qn = (q10 * 7) * q0; moveto 0.2 quaternion @qn;
qn = (q10 * 7) * q0; moveto 0.2 quaternion @qn;
qn = (q10 * 9) * q0; moveto 0.3 quaternion @qn;
qn = (q10 * 9) * q0; moveto 0.3 quaternion @qn;
-
qn = (q10 * 11) * q0; moveto 0.5 quaternion @qn;
+
qn = (q10 * 10.1) * q0; moveto 0.5 quaternion @qn;
qn = (q10 * 10) * q0; moveto 0.5 quaternion @qn;
qn = (q10 * 10) * q0; moveto 0.5 quaternion @qn;
</script><text>rotate all the way with variable speed</text></jmolButton></jmol>
</script><text>rotate all the way with variable speed</text></jmolButton></jmol>

Revision as of 18:46, 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