QGenericMatrix Class ReferenceThe QGenericMatrix class is a template class that represents a NxM transformation matrix with N columns and M rows. Далее... #include <QGenericMatrix> Этот класс был введён в Qt 4.6. Открытые функции
Связанные нечлены класса
Подробное описание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. Описание функций-членовQGenericMatrix::QGenericMatrix ()Constructs a NxM identity matrix. QGenericMatrix::QGenericMatrix ( const QGenericMatrix<N, M, T> & other )Создаёт копию other. QGenericMatrix::QGenericMatrix ( const T * values )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(). const T * QGenericMatrix::constData () constReturns a constant pointer to the raw data of this matrix. Смотрите также data(). void QGenericMatrix::copyDataTo ( T * values ) constRetrieves the N * M items in this matrix and copies them to values in row-major order. T * QGenericMatrix::data ()Returns a pointer to the raw data of this matrix. Смотрите также constData(). const T * QGenericMatrix::data () constReturns a constant pointer to the raw data of this matrix. Смотрите также constData(). void QGenericMatrix::fill ( T value )Fills all elements of this matrix with value. bool QGenericMatrix::isIdentity () constReturns true if this matrix is the identity; false otherwise. See also setToIdentity(). void QGenericMatrix::setToIdentity ()Sets this matrix to the identity. See also isIdentity(). QGenericMatrix<M, N, T> QGenericMatrix::transposed () constReturns this matrix, transposed about its diagonal. bool QGenericMatrix::operator!= ( const QGenericMatrix<N, M, T> & other ) constReturns true if this matrix is not identical to other; false otherwise. const T & QGenericMatrix::operator() ( int row, int column ) constReturns a constant reference to the element at position (row, column) in this matrix. T & QGenericMatrix::operator() ( int row, int column )Returns a reference to the element at position (row, column) in this matrix so that the element can be assigned to. QGenericMatrix<N, M, T> & QGenericMatrix::operator*= ( T factor )Multiplies all elements of this matrix by factor. QGenericMatrix<N, M, T> & QGenericMatrix::operator+= ( const QGenericMatrix<N, M, T> & other )Adds the contents of other to this matrix. QGenericMatrix<N, M, T> & QGenericMatrix::operator-= ( const QGenericMatrix<N, M, T> & other )Subtracts the contents of other from this matrix. QGenericMatrix<N, M, T> & QGenericMatrix::operator/= ( T divisor )Divides all elements of this matrix by divisor. bool QGenericMatrix::operator== ( const QGenericMatrix<N, M, T> & other ) constReturns true if this matrix is identical to other; false otherwise. Связанные нечлены классаtypedef QMatrix2x2The QMatrix2x2 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 2 rows, and qreal as the element type. typedef QMatrix2x3The QMatrix2x3 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 3 rows, and qreal as the element type. typedef QMatrix2x4The QMatrix2x4 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 4 rows, and qreal as the element type. typedef QMatrix3x2The QMatrix3x2 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 2 rows, and qreal as the element type. typedef QMatrix3x3The QMatrix3x3 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 3 rows, and qreal as the element type. typedef QMatrix3x4The QMatrix3x4 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 4 rows, and qreal as the element type. typedef QMatrix4x2The QMatrix4x2 type defines a convenient instantiation of the QGenericMatrix template for 4 columns, 2 rows, and qreal as the element type. typedef QMatrix4x3The QMatrix4x3 type defines a convenient instantiation of the QGenericMatrix template for 4 columns, 3 rows, and qreal as the element type. QGenericMatrix<M1, M2, T> operator* ( const QGenericMatrix<N, M2, T> & m1, const QGenericMatrix<M1, N, T> & m2 )Returns the product of the NxM2 matrix m1 and the M1xN matrix m2 to produce a M1xM2 matrix result. QGenericMatrix<N, M, T> operator* ( T factor, const QGenericMatrix<N, M, T> & matrix )Returns the result of multiplying all elements of matrix by factor. QGenericMatrix<N, M, T> operator* ( const QGenericMatrix<N, M, T> & matrix, T factor )Returns the result of multiplying all elements of matrix by factor. QGenericMatrix<N, M, T> operator+ ( const QGenericMatrix<N, M, T> & m1, const QGenericMatrix<N, M, T> & m2 )Returns the sum of m1 and m2. QGenericMatrix<N, M, T> operator- ( const QGenericMatrix<N, M, T> & m1, const QGenericMatrix<N, M, T> & m2 )Returns the difference of m1 and m2. QGenericMatrix<N, M, T> operator- ( const QGenericMatrix<N, M, T> & matrix )Это перегруженная функция. Returns the negation of matrix. QGenericMatrix<N, M, T> operator/ ( const QGenericMatrix<N, M, T> & matrix, T divisor )Returns the result of dividing all elements of matrix by divisor. QDataStream & operator<< ( QDataStream & stream, const QGenericMatrix<N, M, T> & matrix )Writes the given matrix to the given stream and returns a reference to the stream. Смотрите также Преобразование типов данных Qt в последовательный вид. QDataStream & operator>> ( QDataStream & stream, QGenericMatrix<N, M, T> & matrix )Reads a NxM matrix from the given stream into the given matrix and returns a reference to the stream. Смотрите также Преобразование типов данных Qt в последовательный вид. |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |