Consider a triangle A(0,0), B(1,1) and C(5,2). The triangle has to be rotated by an angle of 45° about the point P(-1, -1). What shall be the coordinates of the new triangle ?
\(A' = \left(-1, \sqrt{2} - 1\right), B' = \left(-1, 2\sqrt{2} - 1\right)\) and \(C' = \left(\frac{3}{2}\sqrt{2} - 1, \frac{9}{2}\sqrt{2} - 1\right)\)
Rotation by \(\theta\) about \(P(x_{p}, y_{p})\): \(x' = x_{p} + (x - x_{p})\cos\theta - (y - y_{p})\sin\theta\) and \(y' = y_{p} + (x - x_{p})\sin\theta + (y - y_{p})\cos\theta\), with \(\cos 45^{\circ} = \sin 45^{\circ} = \frac{1}{\sqrt{2}}\).
A: relative point \((1, 1)\), so \(x' = -1 + \frac{1 - 1}{\sqrt{2}} = -1\) and \(y' = -1 + \frac{1 + 1}{\sqrt{2}} = \sqrt{2} - 1\)
B: relative point \((2, 2)\), so \(x' = -1 + 0 = -1\) and \(y' = -1 + \frac{4}{\sqrt{2}} = 2\sqrt{2} - 1\)
C: relative point \((6, 3)\), so \(x' = -1 + \frac{3}{\sqrt{2}} = \frac{3}{2}\sqrt{2} - 1\) and \(y' = -1 + \frac{9}{\sqrt{2}} = \frac{9}{2}\sqrt{2} - 1\)
Check: distances from P are kept, e.g. \(|PA| = \sqrt{2}\) and \(|PA'| = \sqrt{0^{2} + (\sqrt{2})^{2}} = \sqrt{2}\). The other choices place A' or B' at points not at the rotated positions.
Hence, \(A' = \left(-1, \sqrt{2} - 1\right), B' = \left(-1, 2\sqrt{2} - 1\right)\) and \(C' = \left(\frac{3}{2}\sqrt{2} - 1, \frac{9}{2}\sqrt{2} - 1\right)\).
Consider a triangle represented by A(0, 0), B(1, 1), C(5, 2). The triangle is rotated by 45 degrees about a point P(–1, –1). The co-ordinates of the new triangle obtained after rotation shall be _______
Consider a unit square centred at origin. The coordinates of the square are translated by a factor \(\left(\frac{1}{2}, 1\right)\) and rotated by an angle of 90°. What shall be the coordinates of the new square ?
Let us consider that the original point is (x, y) and new transformed point is (x′, y′). Further, Shx and Shy are shearing factors in x and y directions. If we perform the y-direction shear relative to x = xref then the transformed point is given by _______.
A point P(5, 1) is rotated by 90° about a pivot point (2, 2). What is the coordinate of new transformed point P′ ?
A segment is any object described by GKS commands and data that start with CREATE SEGMENT and Terminates with CLOSE SEGMENT command. What functions can be performed on these segments ?
Consider a triangle with co-ordinates points: A(0, 0), B(3, 3) and C(2, 5). When scaling parameter is 2 towards x-axis and 4 towards y-axis, then what are the new co-ordinates of triangle?
Consider a triangle represented by A(0, 0), B(1, 1), C(5, 2). The triangle is rotated by 45 degrees about a point P(–1, –1). The co-ordinates of the new triangle obtained after rotation shall be _______
Consider a unit square centred at origin. The coordinates of the square are translated by a factor \(\left(\frac{1}{2}, 1\right)\) and rotated by an angle of 90°. What shall be the coordinates of the new square ?