modeling/assets/WebGL/matrix4x4.js
function () {
    var tmp = this.elements[0*4+1];
    this.elements[0*4+1] = this.elements[1*4+0];
    this.elements[1*4+0] = tmp;

    tmp = this.elements[0*4+2];
    this.elements[0*4+2] = this.elements[2*4+0];
    this.elements[2*4+0] = tmp;

    tmp = this.elements[0*4+3];
    this.elements[0*4+3] = this.elements[3*4+0];
    this.elements[3*4+0] = tmp;

    tmp = this.elements[1*4+2];
    this.elements[1*4+2] = this.elements[2*4+1];
    this.elements[2*4+1] = tmp;

    tmp = this.elements[1*4+3];
    this.elements[1*4+3] = this.elements[3*4+1];
    this.elements[3*4+1] = tmp;

    tmp = this.elements[2*4+3];
    this.elements[2*4+3] = this.elements[3*4+2];
    this.elements[3*4+2] = tmp;

    return this;
  }
function () {
    var tmp = this.elements[0*4+1];
    this.elements[0*4+1] = this.elements[1*4+0];
    this.elements[1*4+0] = tmp;

    tmp = this.elements[0*4+2];
    this.elements[0*4+2] = this.elements[2*4+0];
    this.elements[2*4+0] = tmp;

    tmp = this.elements[0*4+3];
    this.elements[0*4+3] = this.elements[3*4+0];
    this.elements[3*4+0] = tmp;

    tmp = this.elements[1*4+2];
    this.elements[1*4+2] = this.elements[2*4+1];
    this.elements[2*4+1] = tmp;

    tmp = this.elements[1*4+3];
    this.elements[1*4+3] = this.elements[3*4+1];
    this.elements[3*4+1] = tmp;

    tmp = this.elements[2*4+3];
    this.elements[2*4+3] = this.elements[3*4+2];
    this.elements[3*4+2] = tmp;

    return this;
  }
function ( ) { var tmp = this . elements [ 0 * 4 + 1 ] ; this . elements [ 0 * 4 + 1 ] = this . elements [ 1 * 4 + 0 ] ; this . elements [ 1 * 4 + 0 ] = tmp ; tmp = this . elements [ 0 * 4 + 2 ] ; this . elements [ 0 * 4 + 2 ] = this . elements [ 2 * 4 + 0 ] ; this . elements [ 2 * 4 + 0 ] = tmp ; tmp = this . elements [ 0 * 4 + 3 ] ; this . elements [ 0 * 4 + 3 ] = this . elements [ 3 * 4 + 0 ] ; this . elements [ 3 * 4 + 0 ] = tmp ; tmp = this . elements [ 1 * 4 + 2 ] ; this . elements [ 1 * 4 + 2 ] = this . elements [ 2 * 4 + 1 ] ; this . elements [ 2 * 4 + 1 ] = tmp ; tmp = this . elements [ 1 * 4 + 3 ] ; this . elements [ 1 * 4 + 3 ] = this . elements [ 3 * 4 + 1 ] ; this . elements [ 3 * 4 + 1 ] = tmp ; tmp = this . elements [ 2 * 4 + 3 ] ; this . elements [ 2 * 4 + 3 ] = this . elements [ 3 * 4 + 2 ] ; this . elements [ 3 * 4 + 2 ] = tmp ; return this ; }
In-place transpose
In - place transpose