as an exercise I wanted to calculate the transformation matrix in order to make the square $ABCD$ into the parallelogram $A'B'C'D'$. I am able to get the matrix so that the square is first at the center $(0,0)$ and rotate it there that $A$ is at the same place as $A'$. But then I need to make the square to into a parallelogram. How can I calculate this matrix? The square at $(0,0)$ has coordinates from $-1.5$ to $1.5$.
Can anybody help me out?
It is sufficient if you add to the component $x$, for example, some dependence on the $y$ component. Let's say if you matrix is something like \begin{array}{cc} 1 & a \\ 0 & 1 \end{array}
then, the $y$ component of your square will remain the same, but the $x$ will be shifted $\pm 1.5a$, depending if it is the upper side or the lower one of the square.