User:Karsten Theis/reset button: Difference between revisions

From Proteopedia
Jump to navigationJump to search
Karsten Theis (talk | contribs)
New page: ==Timed rotation== <StructureSection load='2bna' size='340' side='right' caption='' scene=''> <jmol><jmolButton><script>q1 = {0 0 0 1}; q2 = quaternion(); w = (q2 / q1) % -2; d = w / 200 ...
 
Karsten Theis (talk | contribs)
No edit summary
Line 2: Line 2:
<StructureSection load='2bna' size='340' side='right' caption='' scene=''>
<StructureSection load='2bna' size='340' side='right' caption='' scene=''>


<jmol><jmolButton><script>q1 = {0 0 0 1};
<jmol><jmolButton><script>q1 = {0 0 0 1};q2 = quaternion();w = (q2 / q1) % -2;d = w / 200 + 0.1;t = "rotation angle is " + (w % 1) + "; time (s) is " + (d % 2);echo @t;moveto @d quaternion @q1; </script>
q2 = quaternion();
w = (q2 / q1) % -2;
d = w / 200 + 0.1;
t = "rotation angle is " + (w % 1) + "; time (s) is " + (d % 2);
echo @t;
moveto @d quaternion @q1; </script>
<text>reset</text></jmolButton></jmol>
<text>reset</text></jmolButton></jmol>



Revision as of 13:13, 24 July 2019

Timed rotation

Drag the structure with the mouse to rotate

References

Proteopedia Page Contributors and Editors (what is this?)

Karsten Theis