Object Matrix

From PyMOLWiki
Revision as of 06:05, 7 September 2010 by Karo (talk | contribs) (Created page with 'Every object has an object matrix associated with it. The object matrix tells PyMOL whether the object coordinates are to be transformed before the object is displayed. The matri…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Every object has an object matrix associated with it. The object matrix tells PyMOL whether the object coordinates are to be transformed before the object is displayed. The matrix is not a standard matrix in mathematical sense, it is something PyMOL-specific, also called TTT matrix: It is 4X4, with the upper left 3x3 forming a rotation matrix, the fourth column and row representing pre-rotation and post-rotation translation vectors respectively, and the 16th element always being 1.0. TTT stands for translation - transformation - translation.

Initially, the object matrix is the identity matrix, so no transformation takes place. It is changed during structure alignment (e.g. align and super). By hand, it can be changed with the commands rotate, translate, and origin.

It can be copied to other objects (matrix_copy) and reset to identity (matrix_reset). With get_object_matrix, the current matrix can be read out.

See also

rotate, translate, origin, get_object_matrix, matrix_copy, matrix_reset, align, super