9
3

matrix_inverse.hpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #pragma once
  13. // Dependencies
  14. #include "../detail/setup.hpp"
  15. #include "../matrix.hpp"
  16. #include "../mat2x2.hpp"
  17. #include "../mat3x3.hpp"
  18. #include "../mat4x4.hpp"
  19. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  20. # pragma message("GLM: GLM_GTC_matrix_inverse extension included")
  21. #endif
  22. namespace glm
  23. {
  24. /// @addtogroup gtc_matrix_inverse
  25. /// @{
  26. /// Fast matrix inverse for affine matrix.
  27. ///
  28. /// @param m Input matrix to invert.
  29. /// @tparam genType Squared floating-point matrix: half, float or double. Inverse of matrix based of half-qualifier floating point value is highly innacurate.
  30. /// @see gtc_matrix_inverse
  31. template<typename genType>
  32. GLM_FUNC_DECL genType affineInverse(genType const& m);
  33. /// Compute the inverse transpose of a matrix.
  34. ///
  35. /// @param m Input matrix to invert transpose.
  36. /// @tparam genType Squared floating-point matrix: half, float or double. Inverse of matrix based of half-qualifier floating point value is highly innacurate.
  37. /// @see gtc_matrix_inverse
  38. template<typename genType>
  39. GLM_FUNC_DECL genType inverseTranspose(genType const& m);
  40. /// @}
  41. }//namespace glm
  42. #include "matrix_inverse.inl"