static multiplyScalar(vec, scalar) {
    return new Vector2(vec.x, vec.y).multiplyScalar(scalar);
  }
Multiplies two vectors (value by value) and returns the result.

@static
@param {Vector2} vec A vector.
@param {Number} scalar A scalar.
@returns {Vector2} Returns the product of two vectors.