BIT304 · 2081 · 10 marks
List the rotation matrix in clockwise direction with respect to x-axis, y-axis and z-axis. Rotate the object (0, 0, 0), (2, 3, 0), (5, 4, 0) about the rotation axis y = 4.
List the rotation matrix in clockwise direction with respect to x-axis, y-axis and z-axis. Rotate the object (0, 0, 0), (2, 3, 0), (5, 4, 0) about the rotation axis y = 4.[10]
Rotation Matrices and Rotation About the Line y = 4
Given
Object vertices (2D points in xy-plane, z = 0):
- $P_1 = (0, 0, 0)$
- $P_2 = (2, 3, 0)$
- $P_3 = (5, 4, 0)$
Rotation axis: the line $y = 4$
Rotation angle: NOT specified in the question.
Note on missing data: The angle of rotation is not given. Since the points all lie in the $xy$-plane ($z = 0$) and the axis $y = 4$ is a line in that plane, this is a 2D rotation problem about a fixed point/line in the plane. The standard convention when no angle is stated in TU exams is a $180^\circ$ rotation (which keeps the figure in the same plane), but $90^\circ$ is also used. We solve for $180^\circ$ about the line $y = 4$ (the most natural in-plane interpretation), and also show the general method.
Solution
Part 1: Clockwise Rotation Matrices
A clockwise rotation by angle $\theta$ is the same as a counter-clockwise rotation by $-\theta$. Using $\cos(-\theta) = \cos\theta$ and $\sin(-\theta) = -\sin\theta$:
About X-axis: $$ R_x(\theta) = \begin{bmatrix} 1 & 0 & 0 \ 0 & \cos\theta & \sin\theta \ 0 & -\sin\theta & \cos\theta \end{bmatrix} $$
About Y-axis: $$ R_y(\theta) = \begin{bmatrix} \cos\theta & 0 & -\sin\theta \ 0 & 1 & 0 \ \sin\theta & 0 & \cos\theta \end{bmatrix} $$
About Z-axis (the relevant one for in-plane 2D rotation): $$ R_z(\theta) = \begin{bmatrix} \cos\theta & \sin\theta & 0 \ -\sin\theta & \cos\theta & 0 \ 0 & 0 & 1 \end{bmatrix} $$
Part 2: Rotating the object about the line y = 4
Since all points lie in the $z = 0$ plane and $y = 4$ is a horizontal line in that plane, the rotation is a 2D rotation about the pivot on that line, performed using $R_z$.
Sequence: Translate axis to origin, rotate about $z$, translate back.
$$T_1: (x, y) \to (x, y - 4), \qquad T_2: (x, y) \to (x, y + 4)$$
Step 1 - Translate by $(0, -4)$:
- $P_1' = (0, -4)$
- $P_2' = (2, -1)$
- $P_3' = (5, 0)$
Step 2 - Rotate by $\theta = 180^\circ$ (clockwise = same as CCW for $180^\circ$): With $\cos 180^\circ = -1$, $\sin 180^\circ = 0$: $$ R_z(180^\circ) = \begin{bmatrix} -1 & 0 \ 0 & -1 \end{bmatrix}, \quad (x, y) \to (-x, -y) $$
- $P_1'' = (0, 4)$
- $P_2'' = (-2, 1)$
- $P_3'' = (-5, 0)$
Step 3 - Translate back by $(0, +4)$:
- $P_1''' = (0, 8, 0)$
- $P_2''' = (-2, 5, 0)$
- $P_3''' = (-5, 4, 0)$
Final Rotated Points ($180^\circ$ about y = 4):
| Original | Rotated |
|---|---|
| $(0, 0, 0)$ | $(0, 8, 0)$ |
| $(2, 3, 0)$ | $(-2, 5, 0)$ |
| $(5, 4, 0)$ | $(-5, 4, 0)$ |
Why the In-Plane Reading Is Used
Interpreting $y = 4$ as an axis parallel to the x-axis and applying a 3D $90^\circ$ rotation about the y-axis ($R_y$) sends the points out of the plane, which is inconsistent because:
- A line $y = 4$ in a 2D figure is a pivot for an in-plane rotation about the z-axis, not the y-axis.
- The arithmetic also mislabels: rotating a point about the line $y=4$ should not change the $y$-coordinate of a point already at $y=4$ into $(0,4,5)$ moving in $z$; a physical rotation about a line in the plane keeps points in the plane for $180^\circ$.
Because the angle is not given, the numeric result is not unique. The working above uses $180^\circ$, the standard in-plane default; an out-of-plane $90^\circ$ rotation about the y axis would give different final coordinates.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.