*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> standard/translate (3)              
Title
Content
Arch
Section
 

Contents


translate(3G)							 translate(3G)


NAME    [Toc]    [Back]

     translate - translates the	current	matrix

C SPECIFICATION    [Toc]    [Back]

     void translate(x, y, z)
     Coord x, y, z;

PARAMETERS    [Toc]    [Back]

     x	 expects the x coordinate of a point.

     y	 expects the y coordinate of a point.

     z	 expects the z coordinate of a point.

DESCRIPTION    [Toc]    [Back]

     translate 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	translate, T is	replaced with X*T.

     The current matrix	is the top matrix on the transformation	stack if mmode
     is	MSINGLE, the top matrix	on the ModelView matrix	stack if mmode is
     MVIEWING, the Projection matrix if	mmode is MPROJECTION, or the Texture
     matrix if mmode is	MTEXTURE.

     All objects drawn after translate is called while mmode is	either MSINGLE
     or	MVIEWING are translated.  Use pushmatrix and popmatrix to preserve and
     restore the untranslated coordinate system.

SEE ALSO    [Toc]    [Back]

      
      
     mmode, popmatrix, pushmatrix, rotate, scale


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
glScale Tru64 multiply the current matrix by a general scaling matrix
glScalef Tru64 multiply the current matrix by a general scaling matrix
glScaled Tru64 multiply the current matrix by a general scaling matrix
glscale IRIX multiply the current matrix by a general scaling matrix
glfrustum IRIX multiply the current matrix by a perspective matrix
glTranslate Tru64 multiply the current matrix by a translation matrix
glortho IRIX multiply the current matrix with an orthographic matrix
glloadidentity IRIX replace the current matrix with the identity matrix
glTranslated Tru64 multiply the current matrix by a translation matrix
glFrustum Tru64 multiply the current matrix by a perspective matrix
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service