static add(vecA, vecB) {
    return new Vector2(vecA.x + vecB.x, vecA.y + vecB.y);
  }
Adds two vectors and returns the result as a new vector.

@static
@param {Vector2} vecA A summand.
@param {Vector2} vecB A summand.
@returns {Vector2} Returns the sum of two vectors.