transl(3G)transl(3G)NAMEtransl - translates the current matrix
FORTRAN 77 SPECIFICATION
subroutine transl(x, y, z)
real x, y, z
PARAMETERS
x expects the x coordinate of a point.
y expects the y coordinate of a point.
z expects the z coordinate of a point.
DESCRIPTIONtransl moves the coordinate system origin to a point specified in the
current coordinate system. The x, y, and z coordinates are used to
compute a 4x4 translation matrix, which then premultiplies the current
matrix, as specified by mmode. Thus if T is the current matrix, and X is
the translation matrix computed by transl, T is replaced with X*T.
The current matrix is the top matrix on the transformation stack if mmode
is MSINGL, the top matrix on the ModelView matrix stack if mmode is
MVIEWI, the Projection matrix if mmode is MPROJE, or the Texture matrix
if mmode is MTEXTU.
All objects drawn after transl is called while mmode is either MSINGL or
MVIEWI are translated. Use pushma and popmat to preserve and restore the
untranslated coordinate system.
SEE ALSO
mmode, popmat, pushma, rotate, scale
Page 1