square to trapezoid
问题 I know that transforming a square into a trapezoid is a linear transformation, and can be done using the projective matrix, but I'm having a little trouble figuring out how to construct the matrix. Using the projective matrix to translate, scale, rotates, and shear is straightforward. Is there a simple projective matrix which will transform a square to a trapezoid? 回答1: a,b,c,d are the four corners of your 2D square. a,b,c,d are expressed in homogeneous coordinate and so they are 3x1 matrices