dist/pixi-graph.umd.js
/*
   * Initializes `rotationCayley` and `rotationMatrices`. It is called
   * only once below.
   */
Initializes `rotationCayley` and `rotationMatrices`. It is called
only once below.
Initializes ` rotationCayley ` and ` rotationMatrices ` . It is called only once below .
function init() {
      for (var i = 0; i < 16; i++) {
          var row = [];
          for (var j = 0; j < 16; j++) {
              var _ux = signum((ux[i] * ux[j]) + (vx[i] * uy[j]));
              var _uy = signum((uy[i] * ux[j]) + (vy[i] * uy[j]));
              var _vx = signum((ux[i] * vx[j]) + (vx[i] * vy[j]));
              var _vy = signum((uy[i] * vx[j]) + (vy[i] * vy[j]));
              for (var k = 0; k < 16; k++) {
                  if (ux[k] === _ux && uy[k] === _uy
                      && vx[k] === _vx && vy[k] === _vy) {
                      row.push(k);
                      break;
                  }
              }
          }
      }
      for (var i = 0; i < 16; i++) {
          var mat = new Matrix();
          mat.set(ux[i], uy[i], vx[i], vy[i], 0, 0);
      }
  }
function init ( ) { for ( var i = 0 ; i < 16 ; i ++ ) { var row = [ ] ; for ( var j = 0 ; j < 16 ; j ++ ) { var _ux = signum ( ( ux [ i ] * ux [ j ] ) + ( vx [ i ] * uy [ j ] ) ) ; var _uy = signum ( ( uy [ i ] * ux [ j ] ) + ( vy [ i ] * uy [ j ] ) ) ; var _vx = signum ( ( ux [ i ] * vx [ j ] ) + ( vx [ i ] * vy [ j ] ) ) ; var _vy = signum ( ( uy [ i ] * vx [ j ] ) + ( vy [ i ] * vy [ j ] ) ) ; for ( var k = 0 ; k < 16 ; k ++ ) { if ( ux [ k ] === _ux && uy [ k ] === _uy && vx [ k ] === _vx && vy [ k ] === _vy ) { row . push ( k ) ; break ; } } } } for ( var i = 0 ; i < 16 ; i ++ ) { var mat = new Matrix ( ) ; mat . set ( ux [ i ] , uy [ i ] , vx [ i ] , vy [ i ] , 0 , 0 ) ; } }
Initializes `rotationCayley` and `rotationMatrices`.
Initializes ` rotationCayley ` and ` rotationMatrices ` .
/* Multiplies rotation matrices i and j. */ /* Finds rotation matrix matching the product and pushes it. */