MatrixCompose method

  1. @override
MatrixD MatrixCompose(
  1. Vector3D translation,
  2. QuaternionD rotation,
  3. Vector3D scale
)
override

Compose a transformation matrix from rotational, translational and scaling components

Implementation

@override
MatrixD MatrixCompose(
  Vector3D translation,
  QuaternionD rotation,
  Vector3D scale,
) => $.Matrix$.Extract1(
  (p) => _ffi.MatrixCompose(
    $.Vector3$.Ref1(translation).asNativePointer<Vector3C>().ref,
    $.Quaternion$.Ref1(rotation).asNativePointer<QuaternionC>().ref,
    $.Vector3$.Ref2(scale).asNativePointer<Vector3C>().ref,
  ).toDart(p.asNativePointer()),
);