Creates a Vec2; may be called with x, y, z to set initial values.
Note: Since passing in a raw JavaScript array is valid in all circumstances, if you want to force a JavaScript array into a Vec2's specified type it would be faster to use
const v = vec2.clone(someJSArray); Copy
const v = vec2.clone(someJSArray);
Initial x value.
Initial y value.
the created vector
Creates a Vec2; may be called with x, y, z to set initial values.
Note: Since passing in a raw JavaScript array is valid in all circumstances, if you want to force a JavaScript array into a Vec2's specified type it would be faster to use