multiplyScalar(scalar) {
    this.x *= scalar;
    this.y *= scalar;
    return this;
  }
Multiply the x and y coordinate values of this vector by a scalar.

@param {Number} scalar The scalar.
@returns {Vector2} Returns itself.