vec2-copy

WebJar for vec2-copy

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

vec2-copy
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

vec2-copy
WebJar for vec2-copy
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/mattdesl/vec2-copy

Download vec2-copy

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/vec2-copy/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>vec2-copy</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/vec2-copy/
implementation 'org.webjars.npm:vec2-copy:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/vec2-copy/
implementation ("org.webjars.npm:vec2-copy:1.0.0")
'org.webjars.npm:vec2-copy:jar:1.0.0'
<dependency org="org.webjars.npm" name="vec2-copy" rev="1.0.0">
  <artifact name="vec2-copy" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='vec2-copy', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "vec2-copy" % "1.0.0"
[org.webjars.npm/vec2-copy "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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.

Versions

Version
1.0.0