0% found this document useful (0 votes)
177 views

Computer Graphics Lec - 5

This document discusses reflections of points and objects across lines in 2D and 3D space. It defines the transformation matrices for reflecting across the x-axis, y-axis, lines y=x and y=-x. It also provides examples of reflecting triangles and polygons across various lines, finding the reflected vertices. Finally, it gives problems involving reflecting shapes across lines and rotating a pyramid about an axis.

Uploaded by

west_lmn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
177 views

Computer Graphics Lec - 5

This document discusses reflections of points and objects across lines in 2D and 3D space. It defines the transformation matrices for reflecting across the x-axis, y-axis, lines y=x and y=-x. It also provides examples of reflecting triangles and polygons across various lines, finding the reflected vertices. Finally, it gives problems involving reflecting shapes across lines and rotating a pyramid about an axis.

Uploaded by

west_lmn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Reflection

Reflection about X-axis


Y

P(x,y)

X
X = x
Y = -y
W=w

Rx =

P (x,y)
1 0

0 -1

Reflection about Y-axis

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)

The steps are : P = R(45)P


P = Ry.P
P = R(- 45).P = R(45).Ry.P
= 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)

The steps are : P = R(45)P


P = Rx.P
P = R(- 45).P = R(45).Rx.P
= R(- 45).Rx.R(45)

10

Prob 1) A triangle PQR has its vertices located at P(80,50),


Q(60,10) and R(100,10).It is desired to obtain the mirror
reflection of the triangle about the line passing through the
point A(30,10) and parallel to Y- axis. Obtain the necessary
transformation matrix and also find out the reflected
vertices.
Prob -2)A triangle is defined by the vertices A(1,1), B(6,1) and
C(1,6). Compute the vertices of the reflected triangle ifa) It is reflected about the line x = 5
b) It is reflected about the line y = 3
Prob- 3) Derive the transformation matrix to reflect about the
line y = -10

11

Prob 4) Reflect the diamond shaped polygon whose


vertices are A(-1,0),B(0,-2),C(1,0) and D(0,2) about a) the line y = 2
b) the line x = 2
c) the line y = x+2
Prob 5) A mirror is vertically placed such that it passes
through (20,0) and (0.20). Find the reflected view of the
triangle with vertices (30,40),(50,50) and (40,70)
Prob 6) A pyramid defined by the co ordinates
A(0,0,0),B(1,0,0),C(0,1,0) and D(0,0,1) is rotated about
45 about a line passing through the point C(0,1,0) and
parallel to Z axis. Also find the co-ordinates of the
transformed figure.

12

You might also like