B2G/gecko/browser/devtools/tilt/TiltMath.jsm
/**
   * Creates a new instance of a mat4 using the default Float32Array type.
   * Any array containing at least 16 numeric elements can serve as a mat4.
   *
   * @param {Array} aMat
   *                optional, mat4 containing values to initialize with
   *
   * @return {Array} a new instance of a mat4
   */
Creates a new instance of a mat4 using the default Float32Array type.
Any array containing at least 16 numeric elements can serve as a mat4.

@param {Array} aMat
optional, mat4 containing values to initialize with

@return {Array} a new instance of a mat4
Creates a new instance of a mat4 using the default Float32Array type . Any array containing at least 16 numeric elements can serve as a mat4 . @param { Array } aMat optional mat4 containing values to initialize with @return { Array } a new instance of a mat4
function M4_create(aMat)
  {
    let dest = new Float32Array(16);
    if (aMat) {
      mat4.set(aMat, dest);
    } else {
      mat4.identity(dest);
    }
    return dest;
  }
function M4_create ( aMat ) { let dest = new Float32Array ( 16 ) ; if ( aMat ) { mat4 . set ( aMat , dest ) ; } else { mat4 . identity ( dest ) ; } return dest ; }
Creates a new instance of a mat4 using the default Float32Array type.
Creates a new instance of a mat4 using the default Float32Array type .