0% found this document useful (0 votes)
56 views3 pages

Other Transformations

This document discusses two types of geometric transformations: reflection and shearing. Reflection creates a mirror image of an object about an axis. The transformation matrix for reflection about the x-axis is [1 0 0; 0 -1 0; 0 0 1]. Shearing distorts the shape of an object by causing its internal layers to slide over each other. Shearing in the x-direction uses the matrix [1 shx 0; 0 1 0; 0 0 1], where shx is the shear factor. Positive shx values shear the object toward the positive x-axis, and negative values shear it toward the negative x-axis.

Uploaded by

shubham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
0% found this document useful (0 votes)
56 views3 pages

Other Transformations

This document discusses two types of geometric transformations: reflection and shearing. Reflection creates a mirror image of an object about an axis. The transformation matrix for reflection about the x-axis is [1 0 0; 0 -1 0; 0 0 1]. Shearing distorts the shape of an object by causing its internal layers to slide over each other. Shearing in the x-direction uses the matrix [1 shx 0; 0 1 0; 0 0 1], where shx is the shear factor. Positive shx values shear the object toward the positive x-axis, and negative values shear it toward the negative x-axis.

Uploaded by

shubham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
You are on page 1/ 3

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)

Similiarly for reflection about y-axis:


1 0
0 1
0 0

0
0
1

(B)

For reflection relative to origin:


1 0 0
0 1 0
0
0 1

...(C)

Thus reflection about any line y=mx+c can be carried out by successive translation rotation-reflection
sequence..
Steps:
-

First we translate the line to the coordinate origin..

Then by applying rotation we rotate the line coinciding with any of the above three line
conditions viz.[A,B,C]

Now reflection is done

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

Thus the output is:


x = x + shx*y;
y=y;
In above transformation if suppose the input is a square and shx>0 then,
The square will be transformed into parallelogram with inclination towards positive x axis

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

For shifting along yaxis with xref,


1
0
Matrix = 1
0
0

0
;
1

You might also like