Sun, 03 Nov 2019 13:07:04 +0200
fixed translations being updated twice at the same time, that's bad
#pragma once #include <QMetaType> template<int Rows, int Columns, typename T = double> struct Matrix { T values[Rows][Columns]; T& operator()(int row, int column) { return this->values[row][column]; } T operator()(int row, int column) const { return this->values[row][column]; } }; using Matrix3x3 = Matrix<3, 3>; Q_DECLARE_METATYPE(Matrix3x3); using Matrix4x4 = Matrix<4, 4>; Q_DECLARE_METATYPE(Matrix4x4);