Contents

SushiEngine::placeholder

decompose_transform

void decompose_transform(const Matrix4 &matrix, Vector3 &out_position, Quaternion &out_rotation, Vector3 &out_scale) noexcept

Parameters

NameTypeDescription
matrixconst Matrix4 &

A column-major TRS matrix.

out_positionVector3 &
out_rotationQuaternion &
out_scaleVector3 &

Description

Decomposes an affine matrix into translation, rotation and scale.

See also

engine/foundation/core/include/README.md