next up previous contents index
Next: WRITE_DATA write Up: Handling of atomic coordinates Previous: ORIENT_MODEL center   Contents   Index

ROTATE_MODEL -- rotate and translate MODEL

TRANSLATION = <real:3> 0.0 0.0 0.0 translation vector for MODEL
ROTATION_MATRIX = <real:9> 1 0 0 0 1 0 0 0 1 rotation matrix for MODEL
ROTATION_ANGLE = <real:1> 0.0 rotation of MODEL around axis [degrees]
ROTATION_AXIS = <real:3> 1.0 0.0 0.0 rotation axis for MODEL

Description:
This command transforms the Cartesian coordinates of MODEL.

Translation is specified by a translation vector TRANSLATION and is done first.

Rotation is specified by a rotation matrix ROTATION_MATRIX that is given as a vector of 9 elements (three rows times three columns), with column index running first: $a_{11}, a_{12}, a_{13}, a_{21}, a_{22},
a_{23}, a_{31}, a_{32}, a_{33}$. The rotation matrix pre-multiplies the Cartesian coordinate vectors. The matrix corresponds to the view matrix of QUANTA and to the rotation matrix of MOLSCRIPT.

The second kind of rotation is specified by a screw transformation, given by the ROTATION_AXIS axis and ROTATION_ANGLE rotation around the axis (in degrees). This is done last.

If only some transformations are desired, set the other values to 0.

Example:


# Example for: ROTATE_MODEL

# This will orient a model as specified (no change in this example):

# Read the structure and transform it:
READ_MODEL FILE = '1fas'
ROTATE_MODEL TRANSLATION = 0 0 0, ROTATION_MATRIX = 1 0 0 ;
                                                    0 1 0 ;
                                                    0 0 1,;
             ROTATION_ANGLE = 0, ROTATION_AXIS = 1 1 1
WRITE_MODEL FILE = '1fas.ini'


next up previous contents index
Next: WRITE_DATA write Up: Handling of atomic coordinates Previous: ORIENT_MODEL center   Contents   Index
Ben Webb 2004-10-04