src/types/matrix.cpp

changeset 1366
69087b1e123b
parent 1326
69a90bd2dba2
--- 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
  */

mercurial