UNPKG

@jscad/modeling

Version:

Constructive Solid Geometry (CSG) Library for JSCAD

11 lines (9 loc) 311 B
/** * Convert the given vector to a representative string. * * @param {vec2} vector - vector of reference * @returns {String} string representation * @alias module:modeling/maths/vec2.toString */ const toString = (vector) => `[${vector[0].toFixed(7)}, ${vector[1].toFixed(7)}]` module.exports = toString