2d mirror about y axis x x y y x 1 0

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: - y*sinΘ –  y’ = x*sinΘ + y*cosΘ X1 = (0.25*x)cos(90) – (0.25y)sin(90) Y1 = (0.25*x)sin(90) + (0.25*y)cos(90) 18 Basic 2D Transforma:ons •  Transla:on: –  x’ = x + tx –  y’ = y + ty •  Scale: –  x’ = x * sx –  y’ = y * sy •  Rota:on: –  x’ = x*cosΘ - y*sinΘ –  y’ = x*sinΘ + y*cosΘ X1 = (0.25*x)cos(90) – (0.25y)sin(90)+5 Y1 = (0.25*x)sin(90) + (0.25*y)cos(90)+3 Note: Order of opera-ons is important. What if you translate first? 19 Matrix Representa:on •  Represent 2D transforma:on by a matrix !a b$ # & "c d% •  Mul:ply matrix by column vector ⇔ apply transforma:on to point # x ' = ax + by ! & x ' ) & a b )& x ) +=( + " ⇔( +( y ' = cx + dy # ( y ' + ' c d *( y + * ' * $' 20 Matrix Rep...
View Full Document

Ask a homework question - tutors are online