TRANSLATE

TRANSL.TEX 19-OCT-91

TRANSLATE command sentence moves atom or point selection by the specified vector.

Syntax



TRANSLATE


          ATOMS
          POINTS    SURFACE
                    VOLUME
                    POTENTIAL
                    DENSITY


          SELECT ... END


          VECTOR    3*real   DISTANCE (abs(3*real))
                                           real
          RMS


          CENTER

ATOM

TRANSLATES selected atoms by adding the specified vector. This is the default, it just makes the syntax easier to understand.

POINTS

TRANSLATES the specified kind of points of selected atoms.

VECTOR

The translational vector must be specified by its X Y and Z components. When the DISTANCE is specified than the specified vector is normalized to length 1.0 and each component is multiplied by the specified distance.

RMS

The translational vector is taken from the last RMS fit calculation.

CENTER

The translational vector is calculated from the current image center and the center (arithmetic middle) of the selected coordinates. The selected atoms are translated into the center of the image.

Examples


MAIN> translate atom select all end vector 10.0 15. 3. distance 1.0


MAIN> translate select segment number 1 end vector 10.0 15. 3.


MAIN> translate atom select all end rms


MAIN> translate atom select all end center


MAIN> translate points density select all end vect 10. 0. 3.