src/types/matrix.h

changeset 1151
0eddb5bcf25b
parent 1072
9ce9496427f2
child 1159
6ad8cdcd88d9
equal deleted inserted replaced
1150:262345e53050 1151:0eddb5bcf25b
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #pragma once 19 #pragma once
20 #include <QString> 20 #include <QString>
21 #include "../glShared.h"
21 22
22 /* 23 /*
23 * A mathematical 3 x 3 matrix 24 * A mathematical 3 x 3 matrix
24 */ 25 */
25 class Matrix 26 class Matrix
51 ConstRowView operator[](int row) const; 52 ConstRowView operator[](int row) const;
52 double& operator()(int row, int column); 53 double& operator()(int row, int column);
53 const double& operator()(int row, int column) const; 54 const double& operator()(int row, int column) const;
54 55
55 static const Matrix identity; 56 static const Matrix identity;
57 static Matrix fromRotationMatrix(const GLRotationMatrix& rotationMatrix);
56 58
57 private: 59 private:
58 double m_values[9]; 60 double m_values[9];
59 }; 61 };
60 62

mercurial