Handling affine transformation

Algorithm to interpolate between two general \(4\times 4\) matrix \(M_1, M_2\)