diff --git a/src/Magnum/Math/Matrix.h b/src/Magnum/Math/Matrix.h index 0b088714e..7e152f55f 100644 --- a/src/Magnum/Math/Matrix.h +++ b/src/Magnum/Math/Matrix.h @@ -137,7 +137,7 @@ template class Matrix: public RectangularMatrix 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 invertedRigid() const; diff --git a/src/Magnum/Math/Matrix4.h b/src/Magnum/Math/Matrix4.h index 05c666482..c43fd1a98 100644 --- a/src/Magnum/Math/Matrix4.h +++ b/src/Magnum/Math/Matrix4.h @@ -350,9 +350,14 @@ template 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 invertedRigid() const;