modeling/src/maths/vec4/create.js

  1. /**
  2. * Represents a four dimensional vector.
  3. * See fromValues().
  4. * @typedef {Array} vec4
  5. */
  6. /**
  7. * Creates a new vector initialized to [0,0,0,0].
  8. *
  9. * @returns {vec4} a new vector
  10. * @alias module:modeling/maths/vec4.create
  11. */
  12. const create = () => [0, 0, 0, 0]
  13. module.exports = create