UNPKG

@jscad/modeling

Version:

Constructive Solid Geometry (CSG) Library for JSCAD

11 lines (9 loc) 286 B
/** * 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