Other Transformations
Other Transformations
REFLECTION:
This transformation creates a mirror image of the object about an axis of reflection .
This transformation keeps the x-coordinates the same for reflection of the object about the x-axis ..
Thus the transformation matrix is:
1 0 0
0 1 0
0 0 1
(A)
0
0
1
(B)
...(C)
Thus reflection about any line y=mx+c can be carried out by successive translation rotation-reflection
sequence..
Steps:
-
Then by applying rotation we rotate the line coinciding with any of the above three line
conditions viz.[A,B,C]
After reflection first reverse translation and then reverse rotation is applied
Thus the object obtained is the reflected object about the given line..
SHEARING :
A transformation which distorts the shape of the object such that the transformed object
appears to be made of internal layers that have been caused to slide over each other is called a
shear .
The x direction shear is produced with transformation matrix :
1
0
1
0
0
0
0
1
Else if shx<0
The parallelogram will be formed but inclination will towards the negative x-axis..
Now as we can see the above transformation are performed w.r.t to the x and y axes
To perform transformation about other lines we can introduce the xrel and yrel factors:
For shifting along xaxis with yref,
1
Matrix = 0
1
0
0
;
0
1
0
;
1