User:Karsten Theis/reset button: Difference between revisions
From Proteopedia
Jump to navigationJump to search
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 ... |
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> | ||