modeling/src/maths/mat4/toString.js

  1. /**
  2. * Return a string representing the given matrix.
  3. *
  4. * @param {mat4} mat - matrix of reference
  5. * @returns {String} string representation
  6. * @alias module:modeling/maths/mat4.toString
  7. */
  8. const toString = (mat) => mat.map((n) => n.toFixed(7)).toString()
  9. module.exports = toString