Is there a way using an affine transformation matrix to convert between a rectangle of zero height (i.e. effectively having 2 different end/corner points) and a rectangle of