function equals(a, b) {
    var a0 = a[0],
        a1 = a[1];
    var b0 = b[0],
        b1 = b[1];
    return Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1));
  }
Returns whether or not the vectors have approximately the same elements in the same position.

@param {ReadonlyVec2} a The first vector.
@param {ReadonlyVec2} b The second vector.
@returns {Boolean} True if the vectors are equal, false otherwise.