Documente Academic
Documente Profesional
Documente Cultură
Transformation
Geometrical
Coordinate
Translation
Rotation
Scaling
Reflection
Shearing
Composite Transformations
Copyright @ www.bcanotes.com
Transformation
Coordinate
Translation
Displacement of an object in a given distance and direction from its original
position.
Rigid body transformation that moves object without deformation
Initial Position point P (x, y)
The new point P (x, y)
where
x = x + tx
y = y + ty
tx and ty is the displacement in x and y respectively.
The translation pair (tx, ty) is called a translation vector or shift vector
P
(x,y)
P(x,y)
TRANSLATION
Matrix representation
x
P
y
x'
P'
y '
tx
T
ty
Rotation
angle
Pivot point ( xr , yr)
2-D Rotation
(x, y)
(x, y)
2-D Rotation
x = r cos (f)
y = r sin (f)
x = r cos (f + )
y = r sin (f + )
Trig Identity
x = r cos(f) cos() r sin(f) sin()
y = r sin(f) sin() + r cos(f) cos()
Substitute
x = x cos() - y sin()
y = x sin() + y cos()
2-D Rotation
x = x cos() - y sin()
y = x sin() + y cos()
Matrix representation
P' R P
cos
R
sin
sin
cos
Copyright @ www.bcanotes.com
Scaling
Scaling
X 2,
Y 0.5
Scaling
x = x* sx
y = y * sy
In matrix form:
x' sx 0 x
y ' 0 sy y
Reflection
P1
P2
Original
Image
P3
x
P2
P3
Reflected Image
P1
1 0 0
M 0 1 0
0 0 1
Copyright @ www.bcanotes.com
1 0 0
M 0 1 0
0 0 1
Copyright @ www.bcanotes.com
Reflection relative to an axis perpendicular to the xy plane and passing through the
coordinate origin
Reflected
Image
Original
Image
Reflection relative to an axis perpendicular to the xy plane and passing through the
coordinate origin
1 0 0
M 0 1 0
0 0 1
Copyright @ www.bcanotes.com
Original
Image
Reflected
Image
0 1 0
M 1 0 0
0 0 1
Copyright @ www.bcanotes.com
Shearing
Shearing
1 shx 0
0 1 0
0 0 1
1 shy 0
0 1 0
0 0 1
Composite Transformations