negate()
    {
        this.x = -this.x;
        this.y = -this.y;

        return this;
    }
/**
     * Negates the components of the vector.
     *
     * @return {Vector2d} returns itself.
     */
Negates the components of the vector.
@return {Vector2d} returns itself.
Negates the components of the vector . @return { Vector2d } returns itself .
negate()
    {
        this.x = -this.x;
        this.y = -this.y;
        return this;
    }
negate ( ) { this . x = - this . x ; this . y = - this . y ; return this ; }
Negates the components of the vector.
Negates the components of the vector .