ofDocsdocumentation glm gtxmatrix_decompose (functions)

gtxmatrix_decompose (functions)


glm::decompose( ... )

bool glm::decompose(const glm::mat4 &modelMatrix=P, glm::vec3 &scale=P, glm::quat &orientation=P, glm::vec3 &translation=P, glm::vec3 &skew=P, glm::vec4 &perspective=P)

Decomposes a model matrix to translations, rotation and scale components

See also: gtx_matrix_decompose