copyFromAndConcat method

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

Implementation

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

  var n00 = concatMatrix.m00;
  var n10 = concatMatrix.m10;
  var n20 = concatMatrix.m20;
  var n30 = concatMatrix.m30;
  var n01 = concatMatrix.m01;
  var n11 = concatMatrix.m11;
  var n21 = concatMatrix.m21;
  var n31 = concatMatrix.m31;
  var n02 = concatMatrix.m02;
  var n12 = concatMatrix.m12;
  var n22 = concatMatrix.m22;
  var n32 = concatMatrix.m32;
  var n03 = concatMatrix.m03;
  var n13 = concatMatrix.m13;
  var n23 = concatMatrix.m23;
  var 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;
}