TransformationMatrix

TransformationMatrix[tfun]

gives the homogeneous matrix associated with a TransformationFunction object.

Details

  • For transformations in n dimensions, TransformationMatrix normally gives an × matrix.
  • mat[[1;;n,1;;n]] gives the linear part of the transformation; mat[[1;;n,-1]] gives the displacement vector.

Examples

open allclose all

Basic Examples  (1)

Here is defined to be a rotation around the axis:

In[1]:=
Click for copyable input
Out[1]=

Get the transformation matrix:

In[2]:=
Click for copyable input
Out[2]=

The linear part:

In[3]:=
Click for copyable input
Out[3]=

The displacement vector:

In[4]:=
Click for copyable input
Out[4]=

Scope  (1)

Properties & Relations  (1)

See Also

GeometricTransformation  AffineTransform  LinearFractionalTransform

Introduced in 2007
(6.0)