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

Computer Graphics Lec - 4

This document discusses two dimensional transformations including translation, rotation, scaling, homogeneous coordinates, pivot point operations, and reflections. Translation moves an object by adding dx and dy. Rotation rotates an object around the origin by an angle θ. Scaling enlarges or shrinks an object along the x and y axes by scale factors Sx and Sy.

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)
27 views

Computer Graphics Lec - 4

This document discusses two dimensional transformations including translation, rotation, scaling, homogeneous coordinates, pivot point operations, and reflections. Translation moves an object by adding dx and dy. Rotation rotates an object around the origin by an angle θ. Scaling enlarges or shrinks an object along the x and y axes by scale factors Sx and Sy.

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/ 9

Two Dimensional Transformation

Translation (Drag)
Rotation about origin (rotation)
Scaling (Zoom)

Translation
Y

Object

Object

X
x = x + dx
y = y + dy

Rotation

P (x,y)

r
P (x, y)

x = r cos(+)
Y = r sin(+)
3

Scaling
y

P (x, y)

P (x, y)

x
X = Sx.x
Y = Sy.y

Homogeneous Co ordinates

Pivot Point operation


The steps are :
Translate the object such that the pivot point
coincides with the origin.
Perform the required operation about the origin.
Translate the object such that the pivot point
comes back to the original position.

Reflection

Reflection about X-axies


P(x,y)

X = x
Y = - y

P (x,y)

Reflection about Y-axies


P(x.Y)

P(x,y)

X = -x
Y = y

You might also like