Академический Документы
Профессиональный Документы
Культура Документы
or
or
2D Translation (cont’d)
or or
2D Scaling (cont’d)
• Uniform vs non-uniform scaling
C B
A • From ACP’ triangle:
2D Rotation (cont’d)
• 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 (cont’d)
• Successive translations:
2D Scaling using
homogeneous coordinates
w=1
2D Scaling using
homogeneous coordinates (cont’d)
• Successive scalings:
2D Rotation using
homogeneous coordinates
w=1
2D Rotation using
homogeneous coordinates (cont’d)
• 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 (cont’d)
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 (cont’d)
uz=
ux=
uy=
Change of coordinate systems:
recover rotation R (cont’d)
rx ux r y uy rz uz