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 > AffineTransform >
Mathematica > Visualization and Graphics > Symbolic Graphics Language > Graphics Transformations > Geometric Transforms > AffineTransform >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF