decompose

fun decompose(position: Vector3, quaternion: Quaternion, scale: Vector3): Matrix4

Decomposes this matrix into its position, rotation (quaternion) and scale components and stores the result in the given objects.

Note: not all matrices are decomposable in this way. For example, if an object has a non-uniformly scaled parent, then the object's world matrix may not be decomposable, and this method may not be appropriate.

Return

A reference to this matrix.