| 1 | /// @ref gtc_matrix_inverse |
| 2 | /// @file glm/gtc/matrix_inverse.hpp |
| 3 | /// |
| 4 | /// @see core (dependence) |
| 5 | /// |
| 6 | /// @defgroup gtc_matrix_inverse GLM_GTC_matrix_inverse |
| 7 | /// @ingroup gtc |
| 8 | /// |
| 9 | /// Include <glm/gtc/matrix_integer.hpp> to use the features of this extension. |
| 10 | /// |
| 11 | /// Defines additional matrix inverting functions. |
| 12 | |
| 13 | #pragma once |
| 14 | |
| 15 | // Dependencies |
| 16 | #include "../detail/setup.hpp" |
| 17 | #include "../matrix.hpp" |
| 18 | #include "../mat2x2.hpp" |
| 19 | #include "../mat3x3.hpp" |
| 20 | #include "../mat4x4.hpp" |
| 21 | |
| 22 | #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) |
| 23 | # pragma message("GLM: GLM_GTC_matrix_inverse extension included") |
| 24 | #endif |
| 25 | |
| 26 | namespace glm |
| 27 | { |
| 28 | /// @addtogroup gtc_matrix_inverse |
| 29 | /// @{ |
| 30 | |
| 31 | /// Fast matrix inverse for affine matrix. |
| 32 | /// |
| 33 | /// @param m Input matrix to invert. |
| 34 | /// @tparam genType Squared floating-point matrix: half, float or double. Inverse of matrix based of half-qualifier floating point value is highly innacurate. |
| 35 | /// @see gtc_matrix_inverse |
| 36 | template<typename genType> |
| 37 | GLM_FUNC_DECL genType affineInverse(genType const& m); |
| 38 | |
| 39 | /// Compute the inverse transpose of a matrix. |
| 40 | /// |
| 41 | /// @param m Input matrix to invert transpose. |
| 42 | /// @tparam genType Squared floating-point matrix: half, float or double. Inverse of matrix based of half-qualifier floating point value is highly innacurate. |
| 43 | /// @see gtc_matrix_inverse |
| 44 | template<typename genType> |
| 45 | GLM_FUNC_DECL genType inverseTranspose(genType const& m); |
| 46 | |
| 47 | /// @} |
| 48 | }//namespace glm |
| 49 | |
| 50 | #include "matrix_inverse.inl" |