This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

AffineTransform

AffineTransform[m]
gives a TransformationFunction that represents an affine transform that maps r to .
AffineTransform
gives an affine transform that maps r to .
  • For ordinary affine transforms in dimensions, m is an × matrix.
  • AffineTransform in general supports × matrices for transformations in dimensions.
A general affine transformation:
Transform points:
A pure rotation:
A pure translation:
A general affine transformation:
In[1]:=
Click for copyable input
Out[1]=
Transform points:
In[2]:=
Click for copyable input
Out[2]=
 
A pure rotation:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
A pure translation:
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=
Affine transform in four dimensions:
The inverse transform:
Transformation applied to a 2D shape:
Transformation applied to a 3D shape:
Transforming graphics primitives:
Many other geometric transformations are a special case of affine transform:
In turn, an affine transformation is a special case of a linear-fractional transformation:
The composition of affine transforms is an affine transform:
Nested transformations of a circle:
New in 6