decompose

fun decompose(translate: Vec3, scale: Vec3, rotate: Quaternion, shear: Vec3, perspective: Vec4): Boolean

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.

Return

true if the matrix could be decomposed

Parameters

translate

the translation vector

scale

the scale vector

rotate

the rotation quaternion

shear

the shear vector

perspective

the perspective vector