Jmol/Quaternions: Difference between revisions

Karsten Theis (talk | contribs)
No edit summary
Karsten Theis (talk | contribs)
No edit summary
Line 82: Line 82:
<jmol><jmolButton><script>q10 = @qr / 10;
<jmol><jmolButton><script>q10 = @qr / 10;
moveto 0 quaternion @q0;delay 0.5;
moveto 0 quaternion @q0;delay 0.5;
qn = q10 * q0; moveto 0.2 quaternion @qn;
qn = q10 * q0; moveto 0.5 quaternion @qn;
qn = (q10 * 3) * q0; moveto 0.2 quaternion @qn;
qn = (q10 * 3) * q0; moveto 0.3 quaternion @qn;
qn = (q10 * 7) * q0; moveto 0.2 quaternion @qn;
qn = (q10 * 7) * q0; moveto 0.2 quaternion @qn;
qn = (q10 * 9) * q0; moveto 0.2 quaternion @qn;
qn = (q10 * 9) * q0; moveto 0.3 quaternion @qn;
qn = (q10 * 10) * q0; moveto 0.2 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>


Proteopedia Page Contributors and Editors (what is this?)Proteopedia Page Contributors and Editors (what is this?)

Karsten Theis