Title | Previous | Next

rotation

Set the 4x4 rotation matrix for the active display.

Synopsis:

rotation matrixvalues

Arguments:

matrixvalues

Sixteen real numbers that describe the elements of a 4x4 rotation matrix. The numbers are expected in row major order.

Description:

The rotation command allows the user to directly set the rotation matrix for the active display. The matrix specified by the rotation command is multiplied into the current rotation matrix to yield the new rotation matrix. This allows the user to specify the rotations of objects in a window. This command is useful in setting up a plot's appearance through a script and can be useful in scripted movie generation.

Examples:

#Multiply current rotation by the identity matrix

rotation 1. 0. 0. 0. 0. 1. 0. 0. 0. 0. 1. 0. 0. 0. 0. 1.

#Multiply current rotation matrix by this matrix to rotate

#the plot by 45 degrees in X, then 45 degrees in Y.

rotation .71 0 -.71 0 .5 .71 .5 0 .5 -.71 .5 0 0 0 0 1

See Also:

latitude , longitude , mapping , rotx , roty , rotz


Title | Previous | Next

MeshTV@viper.llnl.gov
Copyright © 1998, U.S. Department of Energy. All rights reserved.