PadhaikoAll subjects

Past exam question: 2082 Kartik (Back), Q3(b)

Computer Graphics and Visualization · 4 marks

Open in the Padhaiko app

Topic: 2D & Composite Transformations; Window-to-Viewport

Question

Reflect the object (2, 3), (4,3), (4,5) about the line y = x+1.

Solution

Decomposition of Reflection About an Arbitrary Line: The line of reflection is , which has slope , angle of inclination , and -intercept . To reflect an object about an arbitrary line , the composite sequence of transformations is:

  1. Translate the line vertically so it passes through the origin: .
  2. Rotate the line by to align it with the positive -axis: .
  3. Perform reflection about the -axis: .
  4. Apply the inverse rotation: .
  5. Apply the inverse translation: .

Derivation of Composite Reflection Matrix: The combined rotation-reflection-rotation sub-matrix aligns with reflection across the line :

Multiplying with the translation matrices:

Thus, for any input point , the reflected coordinates satisfy:

Reflection of Object Vertices: Applying the transformation matrix to each of the three vertices of the triangle:

  1. Vertex :

(Point lies directly on the mirror line since , hence it remains stationary).

  1. Vertex :
  1. Vertex :

(Point also lies directly on the mirror line since , so it remains stationary).

Answer:

The transformation matrix for reflection about is:

The reflected coordinates of the object vertices are:

All past exam questions for Computer Graphics and Visualization