B2G/gecko/browser/devtools/tilt/TiltMath.jsm
/**
   * Copies the values of one mat4 to another
   *
   * @param {Array} aMat
   *                mat4 containing values to copy
   * @param {Array} aDest
   *                mat4 receiving copied values
   *
   * @return {Array} the destination mat4 receiving copied values
   */
Copies the values of one mat4 to another
@param {Array} aMat
mat4 containing values to copy
@param {Array} aDest
mat4 receiving copied values

@return {Array} the destination mat4 receiving copied values
Copies the values of one mat4 to another @param { Array } aMat mat4 containing values to copy @param { Array } aDest mat4 receiving copied values @return { Array } the destination mat4 receiving copied values
function M4_set(aMat, aDest)
  {
    aDest[0] = aMat[0];
    aDest[1] = aMat[1];
    aDest[2] = aMat[2];
    aDest[3] = aMat[3];
    aDest[4] = aMat[4];
    aDest[5] = aMat[5];
    aDest[6] = aMat[6];
    aDest[7] = aMat[7];
    aDest[8] = aMat[8];
    aDest[9] = aMat[9];
    aDest[10] = aMat[10];
    aDest[11] = aMat[11];
    aDest[12] = aMat[12];
    aDest[13] = aMat[13];
    aDest[14] = aMat[14];
    aDest[15] = aMat[15];
    return aDest;
  }
function M4_set ( aMat , aDest ) { aDest [ 0 ] = aMat [ 0 ] ; aDest [ 1 ] = aMat [ 1 ] ; aDest [ 2 ] = aMat [ 2 ] ; aDest [ 3 ] = aMat [ 3 ] ; aDest [ 4 ] = aMat [ 4 ] ; aDest [ 5 ] = aMat [ 5 ] ; aDest [ 6 ] = aMat [ 6 ] ; aDest [ 7 ] = aMat [ 7 ] ; aDest [ 8 ] = aMat [ 8 ] ; aDest [ 9 ] = aMat [ 9 ] ; aDest [ 10 ] = aMat [ 10 ] ; aDest [ 11 ] = aMat [ 11 ] ; aDest [ 12 ] = aMat [ 12 ] ; aDest [ 13 ] = aMat [ 13 ] ; aDest [ 14 ] = aMat [ 14 ] ; aDest [ 15 ] = aMat [ 15 ] ; return aDest ; }
Copies the values of one mat4 to another
 @param {Array} aMat
                mat4 containing values to copy
 @param {Array} aDest
                mat4 receiving copied values
Copies the values of one mat4 to another @param { Array } aMat mat4 containing values to copy @param { Array } aDest mat4 receiving copied values