[Math] general matrix to reflect about the line $y=mx+c$

matricesreflection

I have been looking into matrix transformations and found the following matrix to reflect about the line $y=(\tan\theta)x$.

$$R = \begin{bmatrix}
\cos(2\theta)& \sin(2\theta)\\
\sin(2\theta)& -\cos(2\theta)\\
\end{bmatrix}$$

However, is there a general matrix to reflect about the line $y=mx+c$?

Best Answer

Matrices use for linear transformation. Any linear transformation keep the origin fixed. So only the reflection in lines that pass the origin make linear transformations and has matrix representation. Therefore $c$ must be $0$ and $y=mx$. Hence just set $m=\tan\theta$ to get answer.