Composes a 4x4 matrix from position, quaternion, and scale. This matrix transformation is applied in the order of rotation -> scale -> translation.
The position vector to translate by.
The quaternion representing rotation.
The scaling factor for each axis.
An optional pre-allocated matrix for the result. Defaults to an identity matrix.
The resulting composed matrix.
Composes a 4x4 matrix from position, quaternion, and scale. This matrix transformation is applied in the order of rotation -> scale -> translation.