QGenericMatrix Class Reference |
QGenericMatrix () | |
QGenericMatrix ( const QGenericMatrix<N, M, T> & other ) | |
QGenericMatrix ( const T * values ) | |
const T * | constData () const |
void | copyDataTo ( T * values ) const |
T * | data () |
const T * | data () const |
void | fill ( T value ) |
bool | isIdentity () const |
void | setToIdentity () |
QGenericMatrix<M, N, T> | transposed () const |
bool | operator!= ( const QGenericMatrix<N, M, T> & other ) const |
const T & | operator() ( int row, int column ) const |
T & | operator() ( int row, int column ) |
QGenericMatrix<N, M, T> & | operator*= ( T factor ) |
QGenericMatrix<N, M, T> & | operator+= ( const QGenericMatrix<N, M, T> & other ) |
QGenericMatrix<N, M, T> & | operator-= ( const QGenericMatrix<N, M, T> & other ) |
QGenericMatrix<N, M, T> & | operator/= ( T divisor ) |
bool | operator== ( const QGenericMatrix<N, M, T> & other ) const |
typedef | QMatrix2x2 |
typedef | QMatrix2x3 |
typedef | QMatrix2x4 |
typedef | QMatrix3x2 |
typedef | QMatrix3x3 |
typedef | QMatrix3x4 |
typedef | QMatrix4x2 |
typedef | QMatrix4x3 |
QGenericMatrix<M1, M2, T> | operator* ( const QGenericMatrix<N, M2, T> & m1, const QGenericMatrix<M1, N, T> & m2 ) |
QGenericMatrix<N, M, T> | operator* ( T factor, const QGenericMatrix<N, M, T> & matrix ) |
QGenericMatrix<N, M, T> | operator* ( const QGenericMatrix<N, M, T> & matrix, T factor ) |
QGenericMatrix<N, M, T> | operator+ ( const QGenericMatrix<N, M, T> & m1, const QGenericMatrix<N, M, T> & m2 ) |
QGenericMatrix<N, M, T> | operator- ( const QGenericMatrix<N, M, T> & m1, const QGenericMatrix<N, M, T> & m2 ) |
QGenericMatrix<N, M, T> | operator- ( const QGenericMatrix<N, M, T> & matrix ) |
QGenericMatrix<N, M, T> | operator/ ( const QGenericMatrix<N, M, T> & matrix, T divisor ) |
QDataStream & | operator<< ( QDataStream & stream, const QGenericMatrix<N, M, T> & matrix ) |
QDataStream & | operator>> ( QDataStream & stream, QGenericMatrix<N, M, T> & matrix ) |
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:
N | Number of columns. |
M | Number of rows. |
T | Element type that is visible to users of the class. |
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 Format of the QDataStream Operators.
Reads a NxM matrix from the given stream into the given matrix and returns a reference to the stream.
See also Format of the QDataStream Operators.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.6 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com