JSPM

vec2-copy

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1817
  • Score
    100M100P100Q113482F
  • License MIT

copies a 2-dimensional vector (array)

Package Exports

  • vec2-copy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vec2-copy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vec2-copy

frozen

A common function to copy values from one vec2 array to another.

This will eventually be replaced in a backward-compatible manner by require('gl-vec2/copy')

var tmp = [0, 0]
var other = [25, 25]
console.log( copy(tmp, other) )
//prints [25, 25]

Usage

NPM

copy(out, vec)

Copies the first two elements in vec to the first two elements in out, and returns out.

License

MIT, see LICENSE.md for details.