copyFromAndConcat method Null safety

void copyFromAndConcat(
  1. Matrix3D copyMatrix,
  2. Matrix3D concatMatrix
)

Implementation

void copyFromAndConcat(Matrix3D copyMatrix, Matrix3D concatMatrix) {
  final m00 = copyMatrix.m00;
  final m10 = copyMatrix.m10;
  final m20 = copyMatrix.m20;
  final m30 = copyMatrix.m30;
  final m01 = copyMatrix.m01;
  final m11 = copyMatrix.m11;
  final m21 = copyMatrix.m21;
  final m31 = copyMatrix.m31;
  final m02 = copyMatrix.m02;
  final m12 = copyMatrix.m12;
  final m22 = copyMatrix.m22;
  final m32 = copyMatrix.m32;
  final m03 = copyMatrix.m03;
  final m13 = copyMatrix.m13;
  final m23 = copyMatrix.m23;
  final m33 = copyMatrix.m33;

  final n00 = concatMatrix.m00;
  final n10 = concatMatrix.m10;
  final n20 = concatMatrix.m20;
  final n30 = concatMatrix.m30;
  final n01 = concatMatrix.m01;
  final n11 = concatMatrix.m11;
  final n21 = concatMatrix.m21;
  final n31 = concatMatrix.m31;
  final n02 = concatMatrix.m02;
  final n12 = concatMatrix.m12;
  final n22 = concatMatrix.m22;
  final n32 = concatMatrix.m32;
  final n03 = concatMatrix.m03;
  final n13 = concatMatrix.m13;
  final n23 = concatMatrix.m23;
  final n33 = concatMatrix.m33;

  _data[00] = m00 * n00 + m01 * n10 + m02 * n20 + m03 * n30;
  _data[01] = m10 * n00 + m11 * n10 + m12 * n20 + m13 * n30;
  _data[02] = m20 * n00 + m21 * n10 + m22 * n20 + m23 * n30;
  _data[03] = m30 * n00 + m31 * n10 + m32 * n20 + m33 * n30;
  _data[04] = m00 * n01 + m01 * n11 + m02 * n21 + m03 * n31;
  _data[05] = m10 * n01 + m11 * n11 + m12 * n21 + m13 * n31;
  _data[06] = m20 * n01 + m21 * n11 + m22 * n21 + m23 * n31;
  _data[07] = m30 * n01 + m31 * n11 + m32 * n21 + m33 * n31;
  _data[08] = m00 * n02 + m01 * n12 + m02 * n22 + m03 * n32;
  _data[09] = m10 * n02 + m11 * n12 + m12 * n22 + m13 * n32;
  _data[10] = m20 * n02 + m21 * n12 + m22 * n22 + m23 * n32;
  _data[11] = m30 * n02 + m31 * n12 + m32 * n22 + m33 * n32;
  _data[12] = m00 * n03 + m01 * n13 + m02 * n23 + m03 * n33;
  _data[13] = m10 * n03 + m11 * n13 + m12 * n23 + m13 * n33;
  _data[14] = m20 * n03 + m21 * n13 + m22 * n23 + m23 * n33;
  _data[15] = m30 * n03 + m31 * n13 + m32 * n23 + m33 * n33;
}