modeling/src/maths/mat4/toString.js

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

module.exports = toString