2077 5

CSC214 · 2077 · 5 marks

Translate a triangle ABC with co-ordinates A(0, 0), B(5, 0) and C(5, 5) by 2 units in x-direction and 3 units in y-directions.

Translate a triangle ABC with co-ordinates A(0, 0), B(5, 0) and C(5, 5) by 2 units in x-direction and 3 units in y-directions. [5]

Computer GraphicsChapter 3: Two-Dimensional Geometric TransformationsTwo-Dimensional translation, Rotation, Scaling, Reflection aNumerical: triangle translation transformation
  • Triangle vertices: $A(0, 0)$, $B(5, 0)$, $C(5, 5)$ - Translation: $tx = 2$ (x-direction), $ty = 3$ (y-direction) Translation formula: $$x' = x + tx, \qquad y' = y + ty$$ Homogeneous translation matrix: $$T = \begin{bmatrix} 1 & 0 & 2 \ 0 & 1 & 3 \ 0 & 0 & 1 \end{bmatrix}$$ Point A(0, 0): $$A'...