Scaling: Suppose We Set B C 0, But Let A and D Take On Any Positive Value
Scaling: Suppose We Set B C 0, But Let A and D Take On Any Positive Value
Scaling: Suppose We Set B C 0, But Let A and D Take On Any Positive Value
Scaling
a 0
0 d
x ax
y dy
1 0
0 1
b
1gives:
0 1
x x by
y y
a b
c d
q r s p q r s
0 1 1 0 0 a a b b
0 0 1 1 0 c c d d
y s y . y
P
P
0
s y
Now
P S P or
x s x
y 0
0
.
s y
x
y
P(x,y)
P(x,y)
r
x
P(x,y)
x r. cos
y r. sin
r
x
x r. cos
y r. sin
Gives us:
x x. cos y. sin
y x. sin y. cos
Rotation
Inverse Rotation
2D Translations.
Point P defined as P( x, y ),
translate to Point P( x, y) a distance d x parallel to x axis, d y parallel to y axis.
x x d x y y d y
Define the column vectors
x
P , P
y
Now
P P T
x
dx
,T
y
dy
P
P
x cos
y sin
sin
cos
x
y
cos
Define the matrix R
sin
sin
, P R P
cos