static dot(vecA, vecB) {
    return vecA.x * vecB.x + vecA.y * vecB.y;
  }
Returns the dot product of two vectors.

@static
@param {Vector2} vecA A vector.
@param {Vector2} vecB A vector.
@returns {Number} The dot product of two vectors.