I was wondering, if there is a projection matrix for a perspective projection of a 2D point to a line.
E.g. a random point being projected to the line at $x=1$, parallel to the y axis in the direction of the origin $(0,0)$.
I know that the easiest way to compute this would be to solve the linear equation at $x=1$ (or the intersection of the lines), but isn't there be a matrix based solution too?
To be concrete: I'm looking for a matrix $A$, that solves the equation $x \rightarrow Ax$ with $A\in \mathbb{R}^{3\times3} $
To conclude Emilios answer below, the matrix I was looking for can be written as $$x\rightarrow Ax,\text{with }A= \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ \frac{1}{\text{intercept}_x} & \frac{1}{\text{intercept}_y} & 0 \end{bmatrix} $$