QtBase  v6.3.1
Classes | Typedefs | Functions
qgenericmatrix.h File Reference
#include <QtGui/qtguiglobal.h>
#include <QtCore/qmetatype.h>
#include <QtCore/qdebug.h>
#include <QtCore/qdatastream.h>
Include dependency graph for qgenericmatrix.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QGenericMatrix< N, M, T >
 The QGenericMatrix class is a template class that represents a NxM transformation matrix with N columns and M rows. More...
 
class  QTypeInfo< QGenericMatrix< N, M, T > >
 

Typedefs

typedef QGenericMatrix< 2, 2, float > QMatrix2x2
 
typedef QGenericMatrix< 2, 3, float > QMatrix2x3
 
typedef QGenericMatrix< 2, 4, float > QMatrix2x4
 
typedef QGenericMatrix< 3, 2, float > QMatrix3x2
 
typedef QGenericMatrix< 3, 3, float > QMatrix3x3
 
typedef QGenericMatrix< 3, 4, float > QMatrix3x4
 
typedef QGenericMatrix< 4, 2, float > QMatrix4x2
 
typedef QGenericMatrix< 4, 3, float > QMatrix4x3
 

Functions

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix< N, M, Toperator+ (const QGenericMatrix< N, M, T > &m1, const QGenericMatrix< N, M, T > &m2)
 
template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix< N, M, Toperator- (const QGenericMatrix< N, M, T > &m1, const QGenericMatrix< N, M, T > &m2)
 
template<int N, int M1, int M2, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix< M1, M2, Toperator* (const QGenericMatrix< N, M2, T > &m1, const QGenericMatrix< M1, N, T > &m2)
 
template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix< N, M, Toperator- (const QGenericMatrix< N, M, T > &matrix)
 
template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix< N, M, Toperator* (T factor, const QGenericMatrix< N, M, T > &matrix)
 
template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix< N, M, Toperator* (const QGenericMatrix< N, M, T > &matrix, T factor)
 
template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix< N, M, Toperator/ (const QGenericMatrix< N, M, T > &matrix, T divisor)
 
template<int N, int M, typename T >
QDebug operator<< (QDebug dbg, const QGenericMatrix< N, M, T > &m)
 
template<int N, int M, typename T >
QDataStreamoperator<< (QDataStream &stream, const QGenericMatrix< N, M, T > &matrix)
 
template<int N, int M, typename T >
QDataStreamoperator>> (QDataStream &stream, QGenericMatrix< N, M, T > &matrix)
 

Typedef Documentation

◆ QMatrix2x2

typedef QGenericMatrix<2, 2, float> QMatrix2x2
related

Definition at line 327 of file qgenericmatrix.h.

◆ QMatrix2x3

typedef QGenericMatrix<2, 3, float> QMatrix2x3
related

Definition at line 328 of file qgenericmatrix.h.

◆ QMatrix2x4

typedef QGenericMatrix<2, 4, float> QMatrix2x4
related

Definition at line 329 of file qgenericmatrix.h.

◆ QMatrix3x2

typedef QGenericMatrix<3, 2, float> QMatrix3x2
related

Definition at line 330 of file qgenericmatrix.h.

◆ QMatrix3x3

typedef QGenericMatrix<3, 3, float> QMatrix3x3
related

Definition at line 331 of file qgenericmatrix.h.

◆ QMatrix3x4

typedef QGenericMatrix<3, 4, float> QMatrix3x4
related

Definition at line 332 of file qgenericmatrix.h.

◆ QMatrix4x2

typedef QGenericMatrix<4, 2, float> QMatrix4x2
related

Definition at line 333 of file qgenericmatrix.h.

◆ QMatrix4x3

typedef QGenericMatrix<4, 3, float> QMatrix4x3
related

Definition at line 334 of file qgenericmatrix.h.

Function Documentation

◆ operator*() [1/3]

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T> operator* ( const QGenericMatrix< N, M, T > &  matrix,
T  factor 
)
related

Definition at line 299 of file qgenericmatrix.h.

◆ operator*() [2/3]

template<int N, int M1, int M2, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix<M1, M2, T> operator* ( const QGenericMatrix< N, M2, T > &  m1,
const QGenericMatrix< M1, N, T > &  m2 
)

Definition at line 264 of file qgenericmatrix.h.

◆ operator*() [3/3]

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T> operator* ( T  factor,
const QGenericMatrix< N, M, T > &  matrix 
)
related

Definition at line 289 of file qgenericmatrix.h.

◆ operator+()

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T> operator+ ( const QGenericMatrix< N, M, T > &  m1,
const QGenericMatrix< N, M, T > &  m2 
)
related

Definition at line 244 of file qgenericmatrix.h.

◆ operator-() [1/2]

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T> operator- ( const QGenericMatrix< N, M, T > &  m1,
const QGenericMatrix< N, M, T > &  m2 
)
related

Definition at line 254 of file qgenericmatrix.h.

◆ operator-() [2/2]

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T> operator- ( const QGenericMatrix< N, M, T > &  matrix)
related

Definition at line 279 of file qgenericmatrix.h.

◆ operator/()

template<int N, int M, typename T >
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T> operator/ ( const QGenericMatrix< N, M, T > &  matrix,
T  divisor 
)
related

Definition at line 309 of file qgenericmatrix.h.

◆ operator<<() [1/2]

template<int N, int M, typename T >
QDataStream& operator<< ( QDataStream stream,
const QGenericMatrix< N, M, T > &  matrix 
)
related

Definition at line 359 of file qgenericmatrix.h.

◆ operator<<() [2/2]

template<int N, int M, typename T >
QDebug operator<< ( QDebug  dbg,
const QGenericMatrix< N, M, T > &  m 
)

Definition at line 339 of file qgenericmatrix.h.

Here is the call graph for this function:

◆ operator>>()

template<int N, int M, typename T >
QDataStream& operator>> ( QDataStream stream,
QGenericMatrix< N, M, T > &  matrix 
)
related

Definition at line 368 of file qgenericmatrix.h.