Reflection and Shear
Reflection and Shear
Reflection
A reflection is a transformation that produces a mirror image of an
original object.
In other words, we can say that it is a rotation operation with
180˚angle.
In reflection transformation, the size of the object does not change.
Reflections about any line y = mx+b in the xy plane can be
accomplished with a combination of translate-rotate-reflect
transformations.
In general, we first translate the Line so that it passes through the
origin. Then we can rotate the line onto one of the coordinate axes
and reflect about that axis. Finally, we restore the line to its
original position with the inverse rotation and translation
transformations.
The following figures show reflections with respect to X and Y
axes, and about the origin respectively.
Reflection
Reflection about the line y = 0, the x axis, is accomplished with the
transformation matrix
(5-48)
This transformation keeps x values the same, but "flips" the y values of
coordinate positions. The resulting orientation of an object after it has
been reflected about the x axis is shown in Fig. 5-16.
A reflection about the y axis flips x coordinates while keeping y
coordinates the same. The matrix for this transformation is
(5-49)
Figure 5-17 illustrates the change in position of an object that has been
reflected about the line x = 0. The equivalent rotation in this case is 180
degree angle through three dimensional space about they axis.
Reflection
We flip both the x and y coordinates of a point by reflecting
relative to an axis that is perpendicular to the xy plane and
that passes through the coordinate origin.
This transformation, referred to as a reflection relative to the
coordinate origin, has the matrix representation:
(5-50)
An example of reflection about the origin is shown in Fig. 5-18.
The reflection matrix 5-50 is the rotation matrix R() with = 180
Degree. We are simply rotating the object in the xy plane half a
revolution about the origin.
Shear
A transformation that inclines the shape of
an object is called the shear transformation.
There are two shear transformations X-
Shear and Y-Shear. One shifts X
coordinates values and other shifts Y
coordinate values.
However, in both the cases, only one
coordinate changes its coordinates and
other preserves its values.
Shearing is also termed as Skewing.
Shear
X-Shear
The X-Shear preserves the Y coordinate and
changes are made to X coordinates, which causes
the vertical lines to tilt right or left as shown in
below figure.
The transformation matrix for X-Shear can be
represented as:
X’ = X + Shx ∙ Y
Y’ = Y
Shear
Y-Shear
The Y-Shear preserves the X coordinates and
changes the Y coordinates which causes the
horizontal lines to transform into lines which
slopes up or down as shown in the following
figure.
The Y-Shear can be represented in matrix from
as:
Y’ = Y + Shy ∙ X
X’ = X