UNPKG

@jscad/modeling

Version:

Constructive Solid Geometry (CSG) Library for JSCAD

16 lines (13 loc) 288 B
/** * Represents a three dimensional vector. * See fromValues(). * @typedef {Array} vec3 */ /** * Creates a new vector initialized to [0,0,0]. * * @returns {vec3} a new vector * @alias module:modeling/maths/vec3.create */ const create = () => [0, 0, 0] module.exports = create