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 _______
\(A'\left(-1,\ \sqrt{2}-1\right),\ B'\left(-1,\ 2\sqrt{2}-1\right),\ C'\left(\frac{3}{2}\sqrt{2}-1,\ \frac{9}{2}\sqrt{2}-1\right)\)
Rotation about an arbitrary pivot P(h, k) is a composite transformation: translate P to the origin, rotate about the origin, then translate back. For an anticlockwise rotation by θ: \(x' = h + (x-h)\cos\theta - (y-k)\sin\theta,\ \ y' = k + (x-h)\sin\theta + (y-k)\cos\theta\).
Here h = k = –1 and θ = 45°, so \(\cos 45^\circ = \sin 45^\circ = \frac{1}{\sqrt{2}}\). With \(d_x = x+1,\ d_y = y+1\): \(x' = -1 + \frac{d_x - d_y}{\sqrt{2}},\ \ y' = -1 + \frac{d_x + d_y}{\sqrt{2}}\).
A(0, 0): \(d_x = d_y = 1\), so \(x' = -1 + 0 = -1\) and \(y' = -1 + \frac{2}{\sqrt{2}} = \sqrt{2}-1\). Thus \(A'(-1,\ \sqrt{2}-1)\).
B(1, 1): \(d_x = d_y = 2\), so \(x' = -1\) and \(y' = -1 + \frac{4}{\sqrt{2}} = 2\sqrt{2}-1\). Thus \(B'(-1,\ 2\sqrt{2}-1)\).
C(5, 2): \(d_x = 6,\ d_y = 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\).
A' and B' must lie on the vertical line x = –1, because A and B lie on the 45° line through P and a 45° anticlockwise turn makes that line vertical. Placing A' or B' on y = –1, or swapping the coordinates of C', does not match this rotation.
Hence, the answer is \(A'\left(-1,\ \sqrt{2}-1\right),\ B'\left(-1,\ 2\sqrt{2}-1\right),\ C'\left(\frac{3}{2}\sqrt{2}-1,\ \frac{9}{2}\sqrt{2}-1\right)\).
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 ?
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 ?
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 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 ?
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 ?