Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Visualization and Graphics > Computational Geometry > Geometric Transforms >
Mathematica > Visualization and Graphics > Symbolic Graphics Language > Graphics Transformations > Geometric Transforms >

Translate

Translate[g, {x, y, ...}]
represents graphics primitives g translated by the vector {x, y, ...}.
  • Translate[g, {x, y, ...}] in effect adds {x, y, ...} to each set of coordinates that appear in the graphics primitives g.
  • For objects specified with scaled coordinates Scaled[{x, y}], Translate effectively applies its transformation to the corresponding ordinary coordinates.
  • Normal[expr] if possible replaces all Translate[gi, ...] constructs by versions of the gi in which the coordinates have explicitly been transformed.
Translation of a 2D graphics primitive:
Translate a 3D graphics primitive:
Translation of a 2D graphics primitive:
In[1]:=
Click for copyable input
Out[1]=
 
Translate a 3D graphics primitive:
In[1]:=
Click for copyable input
Out[1]=
Transformation applied to a 2D shape:
Transformation applied to a 3D shape:
The transformations can be nested:
When possible, Normal will transform the coordinates explicitly:
GeometricTransformation is a generalization of Translate:
Rotating and translating a cylinder along a circle:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team