equals(b)
    {
        if (!b) return false;

        const a0 = this.x;
        const a1 = this.y;
        const b0 = b.x;
        const b1 = b.y;

        return (Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0))
            && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)));
    }
/**
     * Returns whether or not the passed vector has approximately the same elements in
     * the same position (when compared with ===) as this one.
     *
     * @param {Vector2d} b - The vector to check equality against.
     * @return {boolean} True if the vectors are equal, false otherwise.
     */
Returns whether or not the passed vector has approximately the same elements in
the same position (when compared with ===) as this one.

@param {Vector2d} b - The vector to check equality against.
@return {boolean} True if the vectors are equal, false otherwise.
Returns whether or not the passed vector has approximately the same elements in the same position ( when compared with === ) as this one . @param { Vector2d } b - The vector to check equality against . @return { boolean } True if the vectors are equal false otherwise .
equals(b)
    {
        if (!b) return false;
        const a0 = this.x;
        const a1 = this.y;
        const b0 = b.x;
        const b1 = b.y;
        return (Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0))
            && Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)));
    }
equals ( b ) { if ( ! b ) return false ; const a0 = this . x ; const a1 = this . y ; const b0 = b . x ; const b1 = b . y ; return ( Math . abs ( a0 - b0 ) <= EPSILON * Math . max ( 1.0 , Math . abs ( a0 ) , Math . abs ( b0 ) ) && Math . abs ( a1 - b1 ) <= EPSILON * Math . max ( 1.0 , Math . abs ( a1 ) , Math . abs ( b1 ) ) ) ; }
Returns whether or not the passed vector has approximately the same elements in
 the same position (when compared with ===) as this one.
Returns whether or not the passed vector has approximately the same elements in the same position ( when compared with === ) as this one .