2080 6

CSC214 · 2080 · 5 marks

Reflect a line segment having end points (9,3) and (12,10) about a line X=7. Draw initial and final result graph as well.

Reflect a line segment having end points (9,3) and (12,10) about a line X=7. Draw initial and final result graph as well. [5]

Computer GraphicsChapter 3: Two-Dimensional Geometric TransformationsTwo-Dimensional translation, Rotation, Scaling, Reflection aNumerical: Line reflection transformation
  • Endpoint $A = (9, 3)$ - Endpoint $B = (12, 10)$ - Mirror line: $X = 7$ (so $a = 7$) $$x' = 2a - x, \qquad y' = y$$ With $a = 7$: $$x' = 14 - x, \qquad y' = y$$ $$x'A = 2(7) - 9 = 14 - 9 = 5$$ $$y'A = 3$$ $$\boxed{A' = (5, 3)}$$ $$x'B = 2(7) - 12 = 14 - 12 = 2$$ $$y'B = 10$$ $$\boxed{B' = (2, 10...