be vertices of a square and
be a transformation matrix.
Then we can transform the square by combining the vertices into a matrix (denoted by
), and multiply it by the transformation matrix
. In other words,
is the transformed square.
Of course, this idea can also apply to other shapes other than squares.