Decomposes a model matrix to translations, rotation and scale components. More...
Functions | |
template<typename T , precision P> | |
GLM_FUNC_DECL bool | glm::decompose (detail::tmat4x4< T, P > const &modelMatrix, detail::tvec3< T, P > &scale, detail::tquat< T, P > &orientation, detail::tvec3< T, P > &translation, detail::tvec3< T, P > &skew, detail::tvec4< T, P > &perspective) |
Decomposes a model matrix to translations, rotation and scale components.
<glm/gtx/decomposition.hpp> need to be included to use these functionalities.
GLM_FUNC_DECL bool glm::decompose | ( | detail::tmat4x4< T, P > const & | modelMatrix, |
detail::tvec3< T, P > & | scale, | ||
detail::tquat< T, P > & | orientation, | ||
detail::tvec3< T, P > & | translation, | ||
detail::tvec3< T, P > & | skew, | ||
detail::tvec4< T, P > & | perspective | ||
) |
Decomposes a model matrix to translations, rotation and scale components