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