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 >

TranslationTransform

TranslationTransform[v]
gives a TransformationFunction that represents translation of points by a vector v.
Generate a function representing a translation by the vector {a, b}:
Apply the transformation function to a vector:
Generate a function representing a translation by the vector {a, b}:
In[1]:=
Click for copyable input
Out[1]=
Apply the transformation function to a vector:
In[2]:=
Click for copyable input
Out[2]=
Translation in four dimensions:
The inverse transform:
Apply the transform 5 times:
Use matrix operations and homogeneous coordinates:
Transformation applied to a 2D shape:
Transformation applied to a 3D shape:
Transforming graphics primitives:
Translating by p and then by q is the same as translating by p+q:
The inverse of translating by p is the same as translating by -p:
For geometric transformations use Translate directly:
A random translation walk:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team