MatrixDecompose method

  1. @override
void MatrixDecompose(
  1. MatrixD mat,
  2. StructPointer<Vector3D> translation,
  3. StructPointer<QuaternionD> rotation,
  4. StructPointer<Vector3D> scale,
)
override

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

Implementation

@override
void MatrixDecompose(
  MatrixD mat,
  StructPointer<Vector3D> translation,
  StructPointer<QuaternionD> rotation,
  StructPointer<Vector3D> scale,
) => _wasm.MatrixDecompose(
  $.Matrix$.Ref1(mat).toJS,
  translation.toJS,
  rotation.toJS,
  scale.toJS,
);