Computer Graphics Lec - 5
Computer Graphics Lec - 5
P(x,y)
X
X = x
Y = -y
W=w
Rx =
P (x,y)
1 0
0 -1
Y
P(x,y)
P(x.Y)
X = -x
Y = y
W=w
Ry =
-1
Reflection about y = x
y
Y=x
Reflection about y = x
To obtain mirror reflection about y = x, the steps are : Rotate the mirror so that it coincides with the y axis.
Reflect about y axis
Rotate back so that the mirror comes to its original
position (45 degree anticlockwise)
The net transformation matrix is
R(-45).Ry.R(45)
Reflection about Y = -X
Reflection about Y = - X
Y
45
X
Reflection about Y = - X
To obtain mirror reflection about y = - x, the steps are : Rotate the mirror so that it coincides with the X - axis
(45 anticlockwise).
Reflect about X axis
Rotate back so that the mirror comes to its original
position (45 clockwise)
The net transformation matrix is
R(-45).Rx.R(45)
10
11
12