src/types/matrix.h

changeset 1390
3eace926af7f
parent 1326
69a90bd2dba2
equal deleted inserted replaced
1389:3fb8ad4d27b1 1390:3eace926af7f
49 Matrix operator*(const Matrix& other) const; 49 Matrix operator*(const Matrix& other) const;
50 RowView operator[](int row); 50 RowView operator[](int row);
51 ConstRowView operator[](int row) const; 51 ConstRowView operator[](int row) const;
52 double& operator()(int row, int column); 52 double& operator()(int row, int column);
53 const double& operator()(int row, int column) const; 53 const double& operator()(int row, int column) const;
54 Matrix& operator*=(const Matrix& other);
54 55
55 static const Matrix identity; 56 static const Matrix identity;
56 static Matrix fromRotationMatrix(const GLRotationMatrix& rotationMatrix); 57 static Matrix fromQMatrix(const QMatrix4x4& matrix);
58 static Matrix scaleMatrix(qreal scalar);
57 59
58 private: 60 private:
59 double m_values[9]; 61 double m_values[9];
60 }; 62 };
61 63

mercurial