Affine transform matrix

With the extra dimension (in 2D):
Similar in 3D but with 4-components vectors, and \(\bf 4\times 4\) matrices.