modeling/src/maths/vec2/create.js

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