Beside euclidean motions, conformal linear mappings we have discussed also scaling, where we shrink or stretch the coordinates according to some factors. Scaling can be described by diagonal matrices with the proportionality factors as eigenvalues.
Another kind of mapping of interest is shearing:
We would like to have a common formula for all these transformations.
For this we embed
into
via
.
Then a translation by the vector
can be written as
matrix a11, a21, a31, a12, a22, a32, a13, a23, a33, a14, a24, a34Note that this is transposed relative to the mathematical version.
An advantage of this description is to be able to describe perspective (no-linear) projections in the same way, see (4.3.2).
Proof.
Because of
we have
and thus
.
We have
. For
we get
, and hence
. Furthermore
and
for
those
.
I.e.
.
Conversely, let
. Then
with
and
.
Thus
, i.e.
and
.
By orthogonalization we get the desired equation.
Since
and
with
and
we have
![]() |
![]() |
|
![]() |
since
.
One can even project on some plane orthogonal to but with rays parallel to some
other vector
.
ARRAY(0x8dab5ac)
Andreas Kriegl 2003-07-23