Jmol/Quaternions

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
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:

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