Seminar
Seminar
2-d transformation.
Y
R()
y' P'
x' cos -sin x
=
y' sin cos y
y P
X
x' x
NewCoords = Matrix * OldCoord
p' = M p
Rotation of Coordinate Axes
x' = r cos () =
Y' Y r cos cos + r sin sin
P y' = r sin () =
y P
r cos sin + r sin cos
X'
y'
x'
R(-)
X
x x' cos sin x
= y
y' -sin cos
Rotation about a arbitrary point.
First of all we will translate the point to the
origin.
Then we’ll rotate the point with a given
angle.
Then we’ll inverse translate the point to
the origin.
[Obj’]=[inverse translation] * [rotation] *
[translation] * [obj]
Opposite Rotation of Axes
Y Y' x' = r cos cos - r sin sin
y' P
y' = r cos sin + r sin cos
X
y
x
R()
X'
x'
x' cos -sin x
= y
y' sin cos
Equivalent Matrices
Y
Y
Y'
y' P' y'
y P
y P
x X X
x' x
x' cos -sin x x'
= y
y' sin cos
X'
Multiple Transformations
Translation followed by rotation of a point
p΄ = R(p + t)
Rotation followed by translation of a point
p΄ = t + Rp
They are not identical
Rotation followed by translation followed by scaling
p΄ = s(t + Rp)
Cumbersome jumble of additions and multiplications !!
Homogeneous Coordinates
cos sin 0 1 0 0
-sin
0
cos 0
0 1
0
0
1 -b
0 1
* Obj
Transformations: Uniform Form
1 0 a s 0 0
T= 0 1 b S= 0 s 0
0 0 1 0 0 1
p' = M1 M2 M3 p
Shearing Transformation
Add part of X to Y
and vice versa! 1 shx 0
Squares turn into
parallelograms! shy 1 0
May be applied in 0 0 1
one direction only.
Summary