decompose


Description:

public bool decompose (out Vec3 translate, out Vec3 scale, out Quaternion rotate, out Vec3 shear, out 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:

this

a Matrix

translate

the translation vector

scale

the scale vector

rotate

the rotation quaternion

shear

the shear vector

perspective

the perspective vector

Returns:

`true` if the matrix could be decomposed