Jmol/Quaternions
From Proteopedia
(Difference between revisions)
Line 29: | Line 29: | ||
How is an orientation different from a rotation? An orientation is the rotation necessary to get the coordinate system from the "reset" orientation to the current orientation. The quaternion q0 for the initial orientation corresponds to no rotation, i.e. {0 0 1 0}. To get back to an orientation q after rotating, use "moveto 0 quaternion q". | How is an orientation different from a rotation? An orientation is the rotation necessary to get the coordinate system from the "reset" orientation to the current orientation. The quaternion q0 for the initial orientation corresponds to no rotation, i.e. {0 0 1 0}. To get back to an orientation q after rotating, use "moveto 0 quaternion q". | ||
- | <jmol><jmolButton><script>moveto 0 quaternion q</script><text>go to saved orientation</text></jmolButton></jmol> | + | <jmol><jmolButton><script>moveto 0 quaternion @q</script><text>go to saved orientation</text></jmolButton></jmol> |
Revision as of 19:24, 24 July 2019
Examples
|