We bake cookies in your browser for a better experience. Using this site means that you consent. Read More
The QGenericMatrix class is a template class that represents a NxM transformation matrix with N columns and M rows. More...
The QGenericMatrix class is a template class that represents a NxM transformation matrix with N columns and M rows.
The QGenericMatrix template has three parameters:
See also QMatrix4x4.
Constructs a NxM identity matrix.
Constructs a copy of other.
Constructs a matrix from the given N * M floating-point values. The contents of the array values is assumed to be in row-major order.
See also copyDataTo().
Returns a constant pointer to the raw data of this matrix.
See also data().
Retrieves the N * M items in this matrix and copies them to values in row-major order.
Returns a pointer to the raw data of this matrix.
See also constData().
Returns a constant pointer to the raw data of this matrix.
See also constData().
Fills all elements of this matrix with value.
Returns true if this matrix is the identity; false otherwise.
See also setToIdentity().
Sets this matrix to the identity.
See also isIdentity().
Returns this matrix, transposed about its diagonal.
Returns true if this matrix is not identical to other; false otherwise.
Returns a constant reference to the element at position (row, column) in this matrix.
Returns a reference to the element at position (row, column) in this matrix so that the element can be assigned to.
Multiplies all elements of this matrix by factor.
Adds the contents of other to this matrix.
Subtracts the contents of other from this matrix.
Divides all elements of this matrix by divisor.
Returns true if this matrix is identical to other; false otherwise.
The QMatrix2x2 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 2 rows, and qreal as the element type.
The QMatrix2x3 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 3 rows, and qreal as the element type.
The QMatrix2x4 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 4 rows, and qreal as the element type.
The QMatrix3x2 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 2 rows, and qreal as the element type.
The QMatrix3x3 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 3 rows, and qreal as the element type.
The QMatrix3x4 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 4 rows, and qreal as the element type.
The QMatrix4x2 type defines a convenient instantiation of the QGenericMatrix template for 4 columns, 2 rows, and qreal as the element type.
The QMatrix4x3 type defines a convenient instantiation of the QGenericMatrix template for 4 columns, 3 rows, and qreal as the element type.
Returns the product of the NxM2 matrix m1 and the M1xN matrix m2 to produce a M1xM2 matrix result.
Returns the result of multiplying all elements of matrix by factor.
Returns the result of multiplying all elements of matrix by factor.
Returns the sum of m1 and m2.
Returns the difference of m1 and m2.
This is an overloaded function.
Returns the negation of matrix.
Returns the result of dividing all elements of matrix by divisor.
Writes the given matrix to the given stream and returns a reference to the stream.
See also Serializing Qt Data Types.
Reads a NxM matrix from the given stream into the given matrix and returns a reference to the stream.
See also Serializing Qt Data Types.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.