Professional Documents
Culture Documents
Reflection in An Arbitrary Line
Reflection in An Arbitrary Line
(3) In general, the reflection is obtained by transforming the line to one of the
axes, reflecting in that axis, and then taking the inverse of the first
transformation. Suppose b 6= 0. More specifically, the reflection is
accomplished in the following five steps:
7 Since tan θ = −a/b, it follows that cos2 θ = 1/(1 + tan2 θ) = b 2/(a 2 + b 2 ) and
sin2 θ = 1 − cos2 θ = a 2/(a 2 + b 2 ). So sin θ cos θ = tan θ cos2 θ = −ab/(a 2 + b
2 ).
Substituting these expressions into (4) yields b 2−a 2 a 2+b 2 − 2ab a
2+b 2 − 2ac a 2+b 2 − 2ab a 2+b 2 a 2−b 2 a 2+b 2 − 2bc a 2+b 2 0 0 1 .
In homogeneous coordinates, multiplication by a factor does not change the
point. So the above matrix can be scaled by a factor a 2 + b 2 to remove all the
denominators in the entries, yielding the reflection matrix Ref (a,b,c) = b
2 − a 2 −2ab −2ac −2ab a2 − b 2 −2bc 0 0 a 2 + b 2 .
Note that the above matrix agrees with (3) in the cases of reflection in x- and y-
axes.
Thus we have removed the assumption b 6= 0 made for deriving the reflection
matrix.
Like a rotation in the plane, a rotation in the space takes about a line referred
to as its rotation axis. Any rotation can be decomposed into three primary
rotations about the x-, and y-, and z-axes: Rotx(θx) = 1 0 0 0 0 cos θx
− sin θx 0 0 sin θx cos θx 0 0 0 0 1 , Roty(θy) = cos θy 0 sin
θy 0 0 1 0 0 − sin θy 0 cos θy 0 0 0 0 1 , Rotz(θz) = cos θz −
sin θz 0 0 sin θz cos θz 0 0 0 0 1 0 0 0 0 1 . 8 Figure 4(a) shows the
direction in which the primary rotations take when the rotation angle is
positive. Figure 4(b) is a mnemonic that helps to remember the directions. For
instance, the x z y θx θy θz x y z (a) (b) Figure 4: Rotations about the coordinate
axes. positive sense of a rotation about the y-axis has the effect of moving
points on the z-axis toward the x-axis.