next up gif contents index
Next: File Formats Up: SPOCK: The Structural Properties Previous: Selections:

 

Matrix specification

OpenGL (and consequently spock) viewing matrices are stored in column major order, with the last column containing the translation components, while the upper-left 3x3 components are a rotation matrix. Array values are stored in memory in the following orientation:


eqnarray3649

Note that most matrices supplied in PDB files do not have a fourth row. This row should always be tex2html_wrap_inline6978.

To facilitate easy cut-and-paste entry of matrices the matrix entry prompts expect the matrix to be specified by rows, with one row following the other, all on a single line. This is exactly what you get if you select a matrix printed out as above, and paste it into an entry prompt (with mouse button 2). The expected order of elements in an entry prompt is:
eqnarray3652


Jon Christopher
Tue Sep 14 16:44:48 CDT 1999