Difference between revisions of "Object Matrix"
(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…') 
(No difference)

Latest revision as of 07:05, 7 September 2010
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 PyMOLspecific, also called TTT matrix: It is 4X4, with the upper left 3x3 forming a rotation matrix, the fourth column and row representing prerotation and postrotation 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