0.9.9 API documenation
|
Decomposes a model matrix to translations, rotation and scale components. More...
Functions | |
template<typename T , qualifier P> | |
GLM_FUNC_DECL bool | decompose (mat< 4, 4, T, P > const &modelMatrix, vec< 3, T, P > &scale, tquat< T, P > &orientation, vec< 3, T, P > &translation, vec< 3, T, P > &skew, vec< 4, T, P > &perspective) |
Decomposes a model matrix to translations, rotation and scale components. More... | |
Decomposes a model matrix to translations, rotation and scale components.
<glm/gtx/matrix_decompose.hpp> need to be included to use these functionalities.
GLM_FUNC_DECL bool glm::decompose | ( | mat< 4, 4, T, P > const & | modelMatrix, |
vec< 3, T, P > & | scale, | ||
tquat< T, P > & | orientation, | ||
vec< 3, T, P > & | translation, | ||
vec< 3, T, P > & | skew, | ||
vec< 4, T, P > & | perspective | ||
) |
Decomposes a model matrix to translations, rotation and scale components.