Jmol/Quaternions: Difference between revisions

Karsten Theis (talk | contribs)
No edit summary
Karsten Theis (talk | contribs)
No edit summary
Line 77: Line 77:


<jmol><jmolButton><script>q10 = @qr / 10; rotate @q10</script><text>rotate one tenth</text></jmolButton></jmol>
<jmol><jmolButton><script>q10 = @qr / 10; rotate @q10</script><text>rotate one tenth</text></jmolButton></jmol>
<jmol><jmolButton><script>q10 = @qr / 10;
qn = qr * q0; moveto 0.2 quaternion @qn;
qn = (qr * 3) * q0; moveto 0.2 quaternion @qn;
qn = (qr * 7) * q0; moveto 0.2 quaternion @qn;
qn = (qr * 9) * q0; moveto 0.2 quaternion @qn;
qn = (qr * 10) * q0; moveto 0.2 quaternion @qn;
</script><text>rotate all the way with variable speed</text></jmolButton></jmol>


Relevant Jmol command examples:
Relevant Jmol command examples:

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

Karsten Theis