2080 11

BIT304 · 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 4: 2D Geometric TransformationsShearing transformationNumerical: line reflection
  • Endpoint A = $(9, 3)$ - Endpoint B = $(12, 10)$ - Line of reflection: $x = 7$ (vertical line, $k = 7$) For any point $(x, y)$ reflected about the vertical line $x = k$: $$(x, y) \rightarrow (2k - x,\ y)$$ The $y$-coordinate is unchanged; the $x$-coordinate is mirrored. Here $k = 7$, so