max(b)
    {
        this.x = Math.max(this.x, b.x);
        this.y = Math.max(this.y, b.y);

        return this;
    }
/**
     * Sets the components to the maximum of this vector and the passed vector.
     *
     * @param {Vector2d} b - the operand to check for max values.
     * @return {Vector2d} returns itself.
     */
Sets the components to the maximum of this vector and the passed vector.
@param {Vector2d} b - the operand to check for max values.
@return {Vector2d} returns itself.
Sets the components to the maximum of this vector and the passed vector . @param { Vector2d } b - the operand to check for max values . @return { Vector2d } returns itself .
max(b)
    {
        this.x = Math.max(this.x, b.x);
        this.y = Math.max(this.y, b.y);
        return this;
    }
max ( b ) { this . x = Math . max ( this . x , b . x ) ; this . y = Math . max ( this . y , b . y ) ; return this ; }
Sets the components to the maximum of this vector and the passed vector.
Sets the components to the maximum of this vector and the passed vector .