true if the matrix could be decomposedMatrix.decompose
bool decompose(out graphene.vec3.Vec3 translate, out graphene.vec3.Vec3 scale, out graphene.quaternion.Quaternion rotate, out graphene.vec3.Vec3 shear, out graphene.vec4.Vec4 perspective)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 | the translation vector |
scale | the scale vector |
rotate | the rotation quaternion |
shear | the shear vector |
perspective | the perspective vector |