src/gui/math3d/qgenericmatrix.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    78 
    78 
    79     Constructs a matrix from the given N * M floating-point \a values.
    79     Constructs a matrix from the given N * M floating-point \a values.
    80     The contents of the array \a values is assumed to be in
    80     The contents of the array \a values is assumed to be in
    81     row-major order.
    81     row-major order.
    82 
    82 
    83     \sa toValueArray()
    83     \sa copyDataTo()
    84 */
    84 */
    85 
    85 
    86 /*!
    86 /*!
    87     \fn const T& QGenericMatrix::operator()(int row, int column) const
    87     \fn const T& QGenericMatrix::operator()(int row, int column) const
    88 
    88 
   100 /*!
   100 /*!
   101     \fn bool QGenericMatrix::isIdentity() const
   101     \fn bool QGenericMatrix::isIdentity() const
   102 
   102 
   103     Returns true if this matrix is the identity; false otherwise.
   103     Returns true if this matrix is the identity; false otherwise.
   104 
   104 
   105     \sa setIdentity()
   105     \sa setToIdentity()
   106 */
   106 */
   107 
   107 
   108 /*!
   108 /*!
   109     \fn void QGenericMatrix::setIdentity()
   109     \fn void QGenericMatrix::setToIdentity()
   110 
   110 
   111     Sets this matrix to the identity.
   111     Sets this matrix to the identity.
   112 
   112 
   113     \sa isIdentity()
   113     \sa isIdentity()
   114 */
   114 */
   211 
   211 
   212     Returns the result of dividing all elements of \a matrix by \a divisor.
   212     Returns the result of dividing all elements of \a matrix by \a divisor.
   213 */
   213 */
   214 
   214 
   215 /*!
   215 /*!
   216     \fn void QGenericMatrix::toValueArray(T *values)
   216     \fn void QGenericMatrix::copyDataTo(T *values) const
   217 
   217 
   218     Retrieves the N * M items in this matrix and writes them to \a values
   218     Retrieves the N * M items in this matrix and copies them to \a values
   219     in row-major order.
   219     in row-major order.
   220 */
   220 */
   221 
   221 
   222 /*!
   222 /*!
   223     \fn T *QGenericMatrix::data()
   223     \fn T *QGenericMatrix::data()
   241     Returns a constant pointer to the raw data of this matrix.
   241     Returns a constant pointer to the raw data of this matrix.
   242 
   242 
   243     \sa data()
   243     \sa data()
   244 */
   244 */
   245 
   245 
       
   246 #ifndef QT_NO_DATASTREAM
       
   247 
       
   248 /*!
       
   249     \fn QDataStream &operator<<(QDataStream &stream, const QGenericMatrix<N, M, T> &matrix)
       
   250     \relates QGenericMatrix
       
   251 
       
   252     Writes the given \a matrix to the given \a stream and returns a
       
   253     reference to the stream.
       
   254 
       
   255     \sa {Format of the QDataStream Operators}
       
   256 */
       
   257 
       
   258 /*!
       
   259     \fn QDataStream &operator>>(QDataStream &stream, QGenericMatrix<N, M, T> &matrix)
       
   260     \relates QGenericMatrix
       
   261 
       
   262     Reads a NxM matrix from the given \a stream into the given \a matrix
       
   263     and returns a reference to the stream.
       
   264 
       
   265     \sa {Format of the QDataStream Operators}
       
   266 */
       
   267 
       
   268 #endif
       
   269 
       
   270 /*!
       
   271     \typedef QMatrix2x2
       
   272     \relates QGenericMatrix
       
   273 
       
   274     The QMatrix2x2 type defines a convenient instantiation of the
       
   275     QGenericMatrix template for 2 columns, 2 rows, and qreal as
       
   276     the element type.
       
   277 */
       
   278 
       
   279 /*!
       
   280     \typedef QMatrix2x3
       
   281     \relates QGenericMatrix
       
   282 
       
   283     The QMatrix2x3 type defines a convenient instantiation of the
       
   284     QGenericMatrix template for 2 columns, 3 rows, and qreal as
       
   285     the element type.
       
   286 */
       
   287 
       
   288 /*!
       
   289     \typedef QMatrix2x4
       
   290     \relates QGenericMatrix
       
   291 
       
   292     The QMatrix2x4 type defines a convenient instantiation of the
       
   293     QGenericMatrix template for 2 columns, 4 rows, and qreal as
       
   294     the element type.
       
   295 */
       
   296 
       
   297 /*!
       
   298     \typedef QMatrix3x2
       
   299     \relates QGenericMatrix
       
   300 
       
   301     The QMatrix3x2 type defines a convenient instantiation of the
       
   302     QGenericMatrix template for 3 columns, 2 rows, and qreal as
       
   303     the element type.
       
   304 */
       
   305 
       
   306 /*!
       
   307     \typedef QMatrix3x3
       
   308     \relates QGenericMatrix
       
   309 
       
   310     The QMatrix3x3 type defines a convenient instantiation of the
       
   311     QGenericMatrix template for 3 columns, 3 rows, and qreal as
       
   312     the element type.
       
   313 */
       
   314 
       
   315 /*!
       
   316     \typedef QMatrix3x4
       
   317     \relates QGenericMatrix
       
   318 
       
   319     The QMatrix3x4 type defines a convenient instantiation of the
       
   320     QGenericMatrix template for 3 columns, 4 rows, and qreal as
       
   321     the element type.
       
   322 */
       
   323 
       
   324 /*!
       
   325     \typedef QMatrix4x2
       
   326     \relates QGenericMatrix
       
   327 
       
   328     The QMatrix4x2 type defines a convenient instantiation of the
       
   329     QGenericMatrix template for 4 columns, 2 rows, and qreal as
       
   330     the element type.
       
   331 */
       
   332 
       
   333 /*!
       
   334     \typedef QMatrix4x3
       
   335     \relates QGenericMatrix
       
   336 
       
   337     The QMatrix4x3 type defines a convenient instantiation of the
       
   338     QGenericMatrix template for 4 columns, 3 rows, and qreal as
       
   339     the element type.
       
   340 */
       
   341 
   246 QT_END_NAMESPACE
   342 QT_END_NAMESPACE