Jmol/Quaternions

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
Line 20: Line 20:
<text>show axes</text></jmolButton></jmol>
<text>show axes</text></jmolButton></jmol>
 +
When a new structure is loaded, the axes point left, up, and out of the screen. The Jmol command "reset" puts the coordinate system back into that initial orientation.
 +
 +
<jmol><jmolButton><script>reset</script>
 +
<text>reset to initial orientation</text></jmolButton></jmol>
 +
 +
The Jmol command "q = quaternion()" assigns the current orientation to 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".
==Combining two rotations==
==Combining two rotations==
-
==Interpolating between orientations==
+
==Interpolating between orientations==
==Interpreting a rotation==
==Interpreting a rotation==

Revision as of 19:19, 24 July 2019

Examples

Caption for this structure

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