Professional Documents
Culture Documents
or
or
2D Translation (contd)
or or
2D Scaling (contd)
Uniform vs non-uniform scaling
C B
A From ACP triangle:
2D Rotation (contd)
From the above equations we have:
or
or
Summary of 2D transformations
coordinates !!
2D Translation using
homogeneous coordinates
w=1
2D Translation using
homogeneous coordinates (contd)
Successive translations:
2D Scaling using
homogeneous coordinates
w=1
2D Scaling using
homogeneous coordinates (contd)
Successive scalings:
2D Rotation using
homogeneous coordinates
w=1
2D Rotation using
homogeneous coordinates (contd)
Successive rotations:
or
Composition of transformations
The transformation matrices of a series of transformations
can be concatenated into a single transformation matrix.
* Translate P1 to origin
Example:
* Perform scaling and rotation
* Translate to P2
Composition of transformations (contd)
1 0 0 P1x
0 1 0 P1y
T=
uy
0 0 1 P1z
ux ux
000 1
(1.2) Recover rotation R
ux, uy, uz are unit vectors in the xyz coordinate system.
uy
ux ux
Change of coordinate systems:
recover rotation R (contd)
uz=
ux=
uy=
Change of coordinate systems:
recover rotation R (contd)
rx ux r y uy rz uz