--- a/src/types/matrix.cpp Fri Mar 30 14:30:51 2018 +0300 +++ b/src/types/matrix.cpp Sat Mar 31 18:41:24 2018 +0300 @@ -51,6 +51,13 @@ } } +Matrix::Matrix(const QGenericMatrix<3, 3>& other) +{ + for (int i = 0; i < 3; i += 1) + for (int j = 0; j < 3; j += 1) + (*this)(i, j) = other(i, j); +} + /* * Returns a string representation of the matrix */