Reflection in Computer Graphic

Reflection:

A reflection is a transformation that produces a mirror image of an object. The mirror image for a two-dimensional reflection is generated relative to an axis of reflection by We can choose an axis of reflection in the xy plane or perpendicular to the xy plane or coordinate origin.

Reflection about x-axis

Reflection the x axis is accomplished with the transformation matrix

Reflection about y-axis

Reflection of an object about the y axis Reflection they axis is accomplished with the transformation matrix

Reflection about the coordinate origin

Reflection about origin is accomplished with the transformation matrix

Reflection axis as the diagonal y=x

To obtain transformation matrix for reflection about diagonal    y=x the transformation sequence is

  1. Clock wise rotation by 45
  2. Reflection about x axis
  3. Counter clock wise by 45

Reflection about the diagonal line y = x is accomplished with the transformation matrix

Reflection axis as the diagonal line y = -x

Reflection axis as the diagonal line y= -x

To obtain transformation matrix for reflection about diagonal y = -x the transformation sequence is

  1. Clock wise rotation by 45
  2. Reflection about x axis
  3. Counter clockwise by 45

Reflection about the diagonal line y = -x is accomplished with the transformation matrix