MatrixDecompose method

  1. @override
void MatrixDecompose(
  1. Matrix mat,
  2. StructPointer<Vector3> translation,
  3. StructPointer<Quaternion> rotation,
  4. StructPointer<Vector3> scale,
)
override

Decompose a transformation matrix into its rotational, translational and scaling components and remove shear

Implementation

@override
void MatrixDecompose(
  Matrix mat,
  StructPointer<Vector3> translation,
  StructPointer<Quaternion> rotation,
  StructPointer<Vector3> scale,
) => _ffi.MatrixDecompose(
  Matrix$.Ref1(mat).asNativePointer<MatrixC>().ref,
  translation.asNativePointer(),
  rotation.asNativePointer(),
  scale.asNativePointer(),
);