0
422views
The equation of a line (L) is Y = 1/2x + 2. The vertices of the triangle ABC are given in homogeneous co-ordinates as A(2, 4, 1), B(4, 6, 1) and C(2, 6, 1).
1 Answer
0
1views

Find a composite transformation matrix that will reflect triangle ABC about the line (L) and also find its new co-ordinates.

Solution:

enter image description here

Equation of line is: y=1/2x+2

Comparing with y=mx+c,m=0.5andc=2

also θ=tan1m

θ=26.56

Step 1: Transformation of Point P(0,2) to origin O(0,0)

[Tr]=[100010tx ty 1]=[100010021]

{tx=0,ty=2} (-ve as direction is downward.) 

Step 2: Rotation of line by an angle of θ=36.87 (-ve as it is moving in clockwise direction)

[R]=[cosθsinθ0sinθcosθ0001]=[cos(26.56)sin(26.56)0sin(26.56)cos(26.56)0001]

[R]=[0.890.4800.480.890001]

Step 3: Reflection of triangle about x-axis

Matrix for reflection about x-axis is given as,

[\mathrm{M}]_{@ \mathrm{x}-\mathrm{axis}}=\left[\begin{array}{ccc}{1} & {0} & {0} \\ {0} & {-1} & {0} \\ {0} & {0} & {1}\end{array}\right]

Step 4: Inverse rotation of line to its original angle

[\mathrm{Rx}]_{\mathrm{ccw}}^{-1}=\left[\begin{array}{ccc}{\cos \theta} & {\sin \theta} & {0} \\ {-\sin \theta} & {\cos \theta} & {0} \\ {0} & {0} & {1}\end{array}\right]=\left[\begin{array}{ccc}{\cos (26.56)} & {\sin (26.56)} & {0} \\ {-\sin (26.56)} & {\cos (26.56)} & {0} \\ {0} & {0} & {1}\end{array}\right]

=\left[\begin{array}{ccc}{0.89} & {0.48} & {0} \\ {-0.48} & {0.89} & {0} \\ {0} & {0} & {1}\end{array}\right]

Step 5: Inverse Translation of Point P to its original position

[\mathrm{Tr}]^{-1}=\left[\begin{array}{lll}{1} & {0} & {0} \\ {0} & {1} & {0} \\ {\mathrm{tx}} & {\text { ty }} & {1}\end{array}\right]=\left[\begin{array}{lll}{1} & {0} & {0} \\ {0} & {1} & {0} \\ {0} & {2} & {1}\end{array}\right]

\{\mathrm{tx}=0, \mathrm{ty}=+2\} \text { (+ve as direction is upwards) }

Now,

The composite transformation matrix,

[\mathrm{T}]=[\mathrm{Tr}][\mathrm{R}][\mathrm{M}][\mathrm{R}]^{-1}[\operatorname{Tr}]^{-1}

=\left[\begin{array}{ccc}{1} & {0} & {0} \\ {0} & {1} & {0} \\ {0} & {-2} & {1}\end{array}\right]\left[\begin{array}{ccc}{0.89} & {-0.48} & {0} \\ {0.48} & {0.89} & {0} \\ {0} & {0} & {1}\end{array}\right]\left[\begin{array}{ccc}{1} & {0} & {0} \\ {0} & {-1} & {0} \\ {0} & {0} & {1}\end{array}\right]\left[\begin{array}{ccc}{0.89} & {0.48} & {0} \\ {-0.48} & {0.89} & {0} \\ {0} & {0} & {1}\end{array}\right]\left[\begin{array}{ccc}{1} & {0} & {0} \\ {0} & {1} & {0} \\ {0} & {2} & {1}\end{array}\right]

=\left[\begin{array}{ccc}{0.561} & {0.854} & {0} \\ {0.854} & {-0.56} & {0} \\ {-1.7} & {1.123} & {1}\end{array}\right]\left[\begin{array}{ccc}{1} & {0} & {0} \\ {0} & {1} & {0} \\ {0} & {2} & {1}\end{array}\right]

=\left[\begin{array}{ccc}{0.56} & {0.854} & {0} \\ {0.854} & {-0.56} & {0} \\ {-1.7} & {3.123} & {1}\end{array}\right]=\left[\begin{array}{ccc}{0.6} & {0.8} & {0} \\ {0.8} & {-0.6} & {0} \\ {-1.7} & {3.1} & {1}\end{array}\right]

Now, new coordinate of triangle ABC are,

\left[\mathrm{X}^{\prime}\right]=[\mathrm{X}][\Gamma]

=\left[\begin{array}{lll}{2} & {4} & {1} \\ {4} & {6} & {1} \\ {2} & {6} & {1}\end{array}\right]\left[\begin{array}{ccc}{0.6} & {0.8} & {0} \\ {0.8} & {-0.6} & {0} \\ {-1.7} & {3.1} & {1}\end{array}\right]

=\left[\begin{array}{lll}{2.7} & {2.3} & {1} \\ {5.5} & {2.7} & {1} \\ {4.3} & {1.1} & {1}\end{array}\right]

A^{\prime}=(2.7,2.3)

B^{\prime}=(5.5,2.7)

C^{\prime}=(4.3,1.1)

Please log in to add an answer.