function clone(a) {
    var out = new ARRAY_TYPE(2);
    out[0] = a[0];
    out[1] = a[1];
    return out;
  }
Creates a new vec2 initialized with values from an existing vector

@param {ReadonlyVec2} a vector to clone
@returns {vec2} a new 2D vector