Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vec2-copy

mattdesl8.7kMIT1.0.0

copies a 2-dimensional vector (array)

copy, vec2, gl-mat4, gl-vec2, gl-matrix

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.