UNPKG
vec2-copy
Version:
latest (1.0.0)
1.0.0
copies a 2-dimensional vector (array)
github.com/mattdesl/vec2-copy
mattdesl/vec2-copy
vec2-copy
/
index.js
5 lines
•
97 B
JavaScript
View Raw
1
2
3
4
5
module.exports =
function
vec2Copy
(
out
, a
)
{
out
[
0
] = a[
0
]
out
[
1
] = a[
1
]
return
out
}