Translate

Translate[g,{x,y,}]

represents graphics primitives g translated by the vector {x,y,}.

Translate[g,{{x1,y1,},{x2,y2,}, }]

represents multiple copies of g translated by a collection of vectors.

Details

  • 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.
  • Translate with a list of vectors is a very efficient way to represent multiple, identical copies of an arbitrarily complex shape or image in a graphic.

Examples

open allclose all

Basic Examples  (2)

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]=

Scope  (4)

Properties & Relations  (2)

Neat Examples  (1)

See Also

Rotate  Scale  GeometricTransformation  TranslationTransform  AffineTransform

Introduced in 2007
(6.0)
| Updated in 2010
(8.0)