Jmol/Quaternions

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
Line 79: Line 79:
<jmol><jmolButton><script>q10 = @qr / 10;
<jmol><jmolButton><script>q10 = @qr / 10;
-
qn = qr * q0; moveto 0.2 quaternion @qn;
+
qn = q10 * q0; moveto 0.2 quaternion @qn;
-
qn = (qr * 3) * q0; moveto 0.2 quaternion @qn;
+
qn = (q10 * 3) * q0; moveto 0.2 quaternion @qn;
-
qn = (qr * 7) * q0; moveto 0.2 quaternion @qn;
+
qn = (q10 * 7) * q0; moveto 0.2 quaternion @qn;
-
qn = (qr * 9) * q0; moveto 0.2 quaternion @qn;
+
qn = (q10 * 9) * q0; moveto 0.2 quaternion @qn;
-
qn = (qr * 10) * q0; moveto 0.2 quaternion @qn;
+
qn = (q10 * 10) * q0; moveto 0.2 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:20, 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