plumageRender/3rdparty/glm/gtc/matrix_inverse.hpp

51 lines
1.4 KiB
C++
Raw Normal View History

2023-05-17 14:49:05 +08:00
/// @ref gtc_matrix_inverse
/// @file glm/gtc/matrix_inverse.hpp
///
/// @see core (dependence)
///
/// @defgroup gtc_matrix_inverse GLM_GTC_matrix_inverse
/// @ingroup gtc
///
2025-02-15 20:55:58 +08:00
/// Include <glm/gtc/matrix_inverse.hpp> to use the features of this extension.
2023-06-07 10:52:04 +08:00
///
2023-05-17 14:49:05 +08:00
/// Defines additional matrix inverting functions.
#pragma once
// Dependencies
#include "../detail/setup.hpp"
#include "../matrix.hpp"
#include "../mat2x2.hpp"
#include "../mat3x3.hpp"
#include "../mat4x4.hpp"
2025-02-15 20:55:58 +08:00
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
2023-05-17 14:49:05 +08:00
# pragma message("GLM: GLM_GTC_matrix_inverse extension included")
#endif
namespace glm
{
/// @addtogroup gtc_matrix_inverse
/// @{
/// Fast matrix inverse for affine matrix.
2025-02-15 20:55:58 +08:00
///
2023-05-17 14:49:05 +08:00
/// @param m Input matrix to invert.
2025-02-15 20:55:58 +08:00
/// @tparam genType Squared floating-point matrix: half, float or double. Inverse of matrix based of half-qualifier floating point value is highly inaccurate.
2023-05-17 14:49:05 +08:00
/// @see gtc_matrix_inverse
2025-02-15 20:55:58 +08:00
template<typename genType>
2023-06-07 10:52:04 +08:00
GLM_FUNC_DECL genType affineInverse(genType const& m);
2023-05-17 14:49:05 +08:00
/// Compute the inverse transpose of a matrix.
2025-02-15 20:55:58 +08:00
///
2023-05-17 14:49:05 +08:00
/// @param m Input matrix to invert transpose.
2025-02-15 20:55:58 +08:00
/// @tparam genType Squared floating-point matrix: half, float or double. Inverse of matrix based of half-qualifier floating point value is highly inaccurate.
2023-05-17 14:49:05 +08:00
/// @see gtc_matrix_inverse
template<typename genType>
2023-06-07 10:52:04 +08:00
GLM_FUNC_DECL genType inverseTranspose(genType const& m);
2023-05-17 14:49:05 +08:00
/// @}
}//namespace glm
#include "matrix_inverse.inl"