Browse Source

Math: documented Matrix[34]::invertedRigid().

pull/54/merge
Vladimír Vondruš 12 years ago
parent
commit
2ca955bb29
  1. 2
      src/Magnum/Math/Matrix.h
  2. 9
      src/Magnum/Math/Matrix3.h
  3. 9
      src/Magnum/Math/Matrix4.h

2
src/Magnum/Math/Matrix.h

@ -137,7 +137,7 @@ template<std::size_t size, class T> class Matrix: public RectangularMatrix<size,
* Computed recursively using Laplace's formula: @f[
* \det(A) = \sum_{j=1}^n (-1)^{i+j} a_{i,j} \det(A^{i,j})
* @f] @f$ A^{i, j} @f$ is matrix without i-th row and j-th column, see
* ij(). The formula is expanded down to 2x2 matrix, where the
* @ref ij(). The formula is expanded down to 2x2 matrix, where the
* determinant is computed directly: @f[
* \det(A) = a_{0, 0} a_{1, 1} - a_{1, 0} a_{0, 1}
* @f]

9
src/Magnum/Math/Matrix3.h

@ -275,9 +275,14 @@ template<class T> class Matrix3: public Matrix<3, T> {
* @brief Inverted rigid transformation matrix
*
* Expects that the matrix represents rigid transformation.
* Significantly faster than the general algorithm in @ref inverted().
* Significantly faster than the general algorithm in @ref inverted(). @f[
* A^{-1} = \begin{pmatrix} (A^{2,2})^T & (A^{2,2})^T \begin{pmatrix} a_{2,0} \\ a_{2,1} \end{pmatrix} \\ \begin{array}{cc} 0 & 0 \end{array} & 1 \end{pmatrix}
* @f]
* @f$ A^{i, j} @f$ is matrix without i-th row and j-th column, see
* @ref ij()
* @see @ref isRigidTransformation(), @ref invertedOrthogonal(),
* @ref rotationScaling(), translation() const
* @ref rotationScaling(), translation() const,
* @ref Matrix4::invertedRigid()
* @todoc Explicit reference when Doxygen can handle const
*/
Matrix3<T> invertedRigid() const;

9
src/Magnum/Math/Matrix4.h

@ -350,9 +350,14 @@ template<class T> class Matrix4: public Matrix<4, T> {
* @brief Inverted rigid transformation matrix
*
* Expects that the matrix represents rigid transformation.
* Significantly faster than the general algorithm in @ref inverted().
* Significantly faster than the general algorithm in @ref inverted(). @f[
* A^{-1} = \begin{pmatrix} (A^{3,3})^T & (A^{3,3})^T \begin{pmatrix} a_{3,0} \\ a_{3,1} \\ a_{3,2} \\ \end{pmatrix} \\ \begin{array}{ccc} 0 & 0 & 0 \end{array} & 1 \end{pmatrix}
* @f]
* @f$ A^{i, j} @f$ is matrix without i-th row and j-th column, see
* @ref ij()
* @see @ref isRigidTransformation(), @ref invertedOrthogonal(),
* @ref rotationScaling(), translation() const
* @ref rotationScaling(), translation() const,
* @ref Matrix3::invertedRigid()
* @todoc Explicit reference when Doxygen can handle const
*/
Matrix4<T> invertedRigid() const;

Loading…
Cancel
Save