Transform 3*3 matrix (e.g. rotation) to affine 4*4 matrix.
input matrix
affine transformation matrix
mat2aff()