Sun, 03 Nov 2019 12:17:41 +0200
major update with many things
#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);