toMatrix4 method

Matrix4 toMatrix4()

Converts this offset into a local transform matrix.

Implementation

vm.Matrix4 toMatrix4() {
  final rot = vm.Quaternion.euler(
    rotationEuler.y,
    rotationEuler.x,
    rotationEuler.z,
  );
  return vm.Matrix4.compose(translation, rot, vm.Vector3.all(1.0));
}