Professional Documents
Culture Documents
CGR U3T1 Presentation9
CGR U3T1 Presentation9
Unit 3 (Topic 1)
P
First,we’ll assume the
pivot is at the origin.
3.1.2….
• Review Trigonometry
=> cos = x/r , sin = y/r
• x = r. cos , y = r.sin
P’(x’, y’)
r
=>sin (+ ) = y’/r y
y’ = r. sin (+ )
• y’ = r.cossin + r.sincos x’ x
• y’ = x.sin + y.cos
Identity of Trigonometry
3.1.2….
• We can write the components:
x' = x cos – y sin
y' = x sin + y cos
P’(x’, y’)
• or in matrix form:
P' = R • P
• can be clockwise (-ve) or
counterclockwise (+ve as our
example). y’
P(x,y)
• Rotation matrix
r
y
cos sin
R
sin cos x
x’
3.1.2….
Example
◦ Find the transformed point, P’, caused by
rotating P= (5, 1) about the origin through an
angle of 90.
cos sin x x cos y sin
sin
cos y x sin y cos
5 0 11
5 1 1 0
1
5
3.1.3 Scaling
• Scaling changes the size of an object and
involves two scale factors, Sx and Sy for
the x- and y- coordinates respectively. P’
• Scales are about the origin.
• We can write the components:
x' = x * sx
y' = y * sy
or in matrix form:
P' = S • P P
Scale matrix as:
sx 0
S
0 s y
3.1.3....
• If the scale factors are in between 0 and 1 the
points will be moved closer to the origin the
object will be smaller.
• Example :
• P(2, 5), Sx = 0.5, Sy = 0.5
• Find P’ ?
P(2, 5)
P’
3.1.3....
• If the scale factors are in between 0 and 1 the
points will be moved closer to the origin the P’
object will be smaller.
• Example :
• P(2, 5), Sx = 0.5, Sy = 0.5
• Find P’ ?
P(2, 5)
1 0 0
0 1 0
0 0 1
1 0 0
0 1 0
0 0 1
3.1.4….
3. About origin 4. About line x=y
1 0 0 0 1 0
0 1 0 1 0 0
0 0 1 0 0 1
3.1.4….
5. About line y=-x
3.1.5 Shear
- Transformation that Slants shape of an
object,
y x- shear y-shear
x
Fig. a) Original object Fig. b) Object after Fig. c) Object after
without shear x-shear y-shear
3.1.5 ….
1. x- shear 2. y-shear
1 shx 0 1 0 0
0 1 0 sh
y 1 0
0 0 1 0 0 1