L8 Composite2DTransformations
L8 Composite2DTransformations
COMPOSITE 2D
TRANSFORMATIONS
Lecture ITSW4111 : Computer
What type of transformations can be
modeled using 2x2 matrix?
2D Translation?
x' x t x
NO!
y' y t y
positions.
Matrix M is a 2 by 2 array containing
1
multiplicative factors.
Matrix M is a 2-element column matrix, containing
2
translational terms factors (translation).
But what we want is a more are a convenient and
efficient way to represent a sequence of
transformations!
We want to combine the multiplicative and translational
Homogeneous
Coordinates
Question: How can we represent
translation asx 'a 3x3
x t matrix?
x
y' y t y
1 0 0 1 1 1
tx = 2
ty = 1
Basic 2D Transformations with
Homogenous Coordinates
Translate Scale
Rotate Shear
Translation
10
p’ = (T * (R * (S*p) ) )
p’ = (T*R*S) * p
Be aware: order of transformations
matters. Matrix multiplication is not
commutative.
How to perform Matrix Composition?
both points
We could try to translate both endpoints to