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

@return {Array} the destination mat3 receiving copied values
Copies the values of one mat3 to another . @param { Array } aMat mat3 containing values to copy @param { Array } aDest mat3 receiving copied values @return { Array } the destination mat3 receiving copied values
function M3_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];
    return aDest;
  }
function M3_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 ] ; return aDest ; }
Copies the values of one mat3 to another.
Copies the values of one mat3 to another .