demos/assets/g2.js
function set(out, m00, m01, m02, m10, m11, m12, m20, m21, m22) {
  out[0] = m00;
  out[1] = m01;
  out[2] = m02;
  out[3] = m10;
  out[4] = m11;
  out[5] = m12;
  out[6] = m20;
  out[7] = m21;
  out[8] = m22;
  return out;
}
function set(out, m00, m01, m02, m10, m11, m12, m20, m21, m22) {
  out[0] = m00;
  out[1] = m01;
  out[2] = m02;
  out[3] = m10;
  out[4] = m11;
  out[5] = m12;
  out[6] = m20;
  out[7] = m21;
  out[8] = m22;
  return out;
}
function set ( out , m00 , m01 , m02 , m10 , m11 , m12 , m20 , m21 , m22 ) { out [ 0 ] = m00 ; out [ 1 ] = m01 ; out [ 2 ] = m02 ; out [ 3 ] = m10 ; out [ 4 ] = m11 ; out [ 5 ] = m12 ; out [ 6 ] = m20 ; out [ 7 ] = m21 ; out [ 8 ] = m22 ; return out ; }
Set the components of a mat3 to the given values

@param {mat3} out the receiving matrix
@param {Number} m00 Component in column 0, row 0 position (index 0)
@param {Number} m01 Component in column 0, row 1 position (index 1)
@param {Number} m02 Component in column 0, row 2 position (index 2)
@param {Number} m10 Component in column 1, row 0 position (index 3)
@param {Number} m11 Component in column 1, row 1 position (index 4)
@param {Number} m12 Component in column 1, row 2 position (index 5)
@param {Number} m20 Component in column 2, row 0 position (index 6)
@param {Number} m21 Component in column 2, row 1 position (index 7)
@param {Number} m22 Component in column 2, row 2 position (index 8)
@returns {mat3} out
Set the components of a mat3 to the given values