Function decompose
Parameters
- out_r: quat
Quaternion to receive the rotation component
- out_t: vec3
Vector to receive the translation vector
- out_s: vec3
Vector to receive the scaling factor
- mat: ReadonlyMat4
Matrix to be decomposed (input)
Returns quat
out_r
- out_r: quat
Was this helpful?
Decomposes a transformation matrix into its rotation, translation and scale components. Returns only the rotation component