src/types/matrix.h

changeset 1366
69087b1e123b
parent 1326
69a90bd2dba2
equal deleted inserted replaced
1364:f6a3640b1818 1366:69087b1e123b
17 */ 17 */
18 18
19 #pragma once 19 #pragma once
20 #include <QString> 20 #include <QString>
21 #include <QMetaType> 21 #include <QMetaType>
22 #include <QGenericMatrix>
22 23
23 /* 24 /*
24 * A mathematical 3 × 3 matrix 25 * A mathematical 3 × 3 matrix
25 */ 26 */
26 class Matrix 27 class Matrix
29 class RowView; 30 class RowView;
30 class ConstRowView; 31 class ConstRowView;
31 32
32 Matrix(); 33 Matrix();
33 Matrix (const std::initializer_list<double>& values); 34 Matrix (const std::initializer_list<double>& values);
35 Matrix(const QGenericMatrix<3, 3>& other);
34 Matrix (double fillval); 36 Matrix (double fillval);
35 37
36 double* begin(); 38 double* begin();
37 const double* begin() const; 39 const double* begin() const;
38 double determinant() const; 40 double determinant() const;

mercurial