src/utils.js
function printMatrix3 (m) {
  const tStr = m.elements.map(formatPrintNumber);
  const matrixString = `
  +-                         -+
  | ${tStr[0]}  ${tStr[3]}  ${tStr[6]} |
  | ${tStr[1]}  ${tStr[4]}  ${tStr[7]} |
  | ${tStr[2]}  ${tStr[5]}  ${tStr[8]} |
  +-                         -+`;
  return matrixString;
}
function printMatrix3 (m) {
  const tStr = m.elements.map(formatPrintNumber);
  const matrixString = `
  +-                         -+
  | ${tStr[0]}  ${tStr[3]}  ${tStr[6]} |
  | ${tStr[1]}  ${tStr[4]}  ${tStr[7]} |
  | ${tStr[2]}  ${tStr[5]}  ${tStr[8]} |
  +-                         -+`;
  return matrixString;
}
function printMatrix3 ( m ) { const tStr = m . elements . map ( formatPrintNumber ) ; const matrixString = ` ${ tStr [ 0 ] } ${ tStr [ 3 ] } ${ tStr [ 6 ] } ${ tStr [ 1 ] } ${ tStr [ 4 ] } ${ tStr [ 7 ] } ${ tStr [ 2 ] } ${ tStr [ 5 ] } ${ tStr [ 8 ] } ` ; return matrixString ; }
Pretty prints a Matrix3.
@memberof Utils
@param {Matrix2} m The 3x3 matrix.
@returns {string} The formatted string.
Pretty prints a Matrix3 .