Midterm Exam: Solutions: D. Transformations (25 Points)
Midterm Exam: Solutions: D. Transformations (25 Points)
[A B C ] = T 1
2. The matrix
1 a species a shearing transformation. In the special case of a = 0, we have shearing in the b 1 y direction, and when b = 0, we have shearing in the x direction. (a) Illustrate the eects of shearing in the x direction, shearing in the y direction, and simultaneous shearing on the square A(0, 0), B(1, 0), C(1, 1), D(0, 1).
D(0,1)
C(1,1)
D(0,1)
C(1,1)
D(0,1)
C(1,1)
A(0,0)
B(0,0)
A(0,0)
B(0,0)
A(0,0)
B(0,0)
Simultaneous shearing a = 2, b = 3
Name:
(b) Is a simultaneous shearing the same as a shearing in the x direction followed by a shearing in the y direction? Why or why not?
1 a 0 3. Show how to express the shearing transformation b 1 0 in terms of rotation and scaling transformations. 0 0 1 Solution: We have the rotation transformation and the scaling transformation sx 0 0 S= 0 0 1 0 0 1
sin cos 0
0 sy 0
sx sin sy cos 0
0 0 1
= sx cos
a = sx sin b = sy sin 1 Substituting values of sx and sy , we get 1 sin = tan cos 1 sin = tan = cos scaling is then 0 0 1 = sy cos
a = b
The shearing transformation expressed in terms of rotation and 1 tan 1 Sh = tan 0 0 where is the angle of rotation.