Matrix.decompose

Decomposes a transformation matrix into its component transformations.

The algorithm for decomposing a matrix is taken from the CSS3 Transforms specification; specifically, the decomposition code is based on the equivalent code published in "Graphics Gems II", edited by Jim Arvo, and available online.

Parameters

translate graphene.vec3.Vec3

the translation vector

scale graphene.vec3.Vec3

the scale vector

rotate graphene.quaternion.Quaternion

the rotation quaternion

shear graphene.vec3.Vec3

the shear vector

perspective graphene.vec4.Vec4

the perspective vector

Return Value

Type: bool

true if the matrix could be decomposed