2080 11

Computer Graphics20805 marksNumerical: line reflectionShearing transformation

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]

  • 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
Up nextExplain ambient light, diffuse reflection and specular reflection with examples.