I'm trying to reflect the "world" through a specified plane $p:Ax+By+Cz=0$. I know how to reflect the "world" through the $xy$-plane, so I want to rotate $p$ in the $3$ axes ($x,y,z$-axes) so it will be contained in the $xy$-plane, which means its normal will be $(0,0,1)$.
That's why I want transform $p$'s normal to $(0,0,1)$. I'm trying to solve this using the three rotations with known transformations:
Rotation about the $z$-axis for example:
\begin{pmatrix} \cos A & -\sin A & 0 \\ \sin A & \cos A & 0 \\ 0 & 0 & 1 \end{pmatrix} So, using only this kind of matrix (for the $x$- and $y$-axes too) I would like to transform $(A,B,C)$ to $(0,0,1)$.
Thank you so much for helping.
First rotate around $X$ with angle $-\arctan(B/C)$ to cancel $B$
$$(A,B,C)\to(A,0,C'),$$
Then rotate around $Y$ with angle $-\arctan(A/C')$ to cancel $A$
$$(A,0,C')\to(0,0,C'').$$