Handling affine transformation

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