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.

class Matrix
bool
decompose

Parameters

translate Vec3

the translation vector

scale Vec3

the scale vector

rotate Quaternion

the rotation quaternion

shear Vec3

the shear vector

perspective Vec4

the perspective vector

Return Value

Type: bool

true if the matrix could be decomposed

Meta