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

@param {Array} aVec
optional, vec3 containing values to initialize with

@return {Array} a new instance of a vec3
Creates a new instance of a vec3 using the Float32Array type . Any array containing at least 3 numeric elements can serve as a vec3 . @param { Array } aVec optional vec3 containing values to initialize with @return { Array } a new instance of a vec3
function V3_create(aVec)
  {
    let dest = new Float32Array(3);
    if (aVec) {
      vec3.set(aVec, dest);
    } else {
      vec3.zero(dest);
    }
    return dest;
  }
function V3_create ( aVec ) { let dest = new Float32Array ( 3 ) ; if ( aVec ) { vec3 . set ( aVec , dest ) ; } else { vec3 . zero ( dest ) ; } return dest ; }
Creates a new instance of a vec3 using the Float32Array type.
Creates a new instance of a vec3 using the Float32Array type .