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

        const a0 = this.a;
        const a1 = this.b;
        const a2 = this.c;
        const a3 = this.d;
        const a4 = this.tx;
        const a5 = this.ty;
        const b0 = b.a;
        const b1 = b.b;
        const b2 = b.c;
        const b3 = b.d;
        const b4 = b.tx;
        const b5 = b.ty;

        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))
            && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2))
            && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3))
            && Math.abs(a4 - b4) <= EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4))
            && Math.abs(a5 - b5) <= EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)));
    }
/**
     * Returns whether or not the passed matrix has approximately the same elements in the
     * same position as this one.
     *
     * @param {Matrix2d} b - The matrix to check equality against.
     * @return {boolean} True if the matrices are equal, false otherwise.
     */
Returns whether or not the passed matrix has approximately the same elements in the
same position as this one.

@param {Matrix2d} b - The matrix to check equality against.
@return {boolean} True if the matrices are equal, false otherwise.
Returns whether or not the passed matrix has approximately the same elements in the same position as this one . @param { Matrix2d } b - The matrix to check equality against . @return { boolean } True if the matrices are equal false otherwise .
equals(b)
    {
        if (!b) return false;
        const a0 = this.a;
        const a1 = this.b;
        const a2 = this.c;
        const a3 = this.d;
        const a4 = this.tx;
        const a5 = this.ty;
        const b0 = b.a;
        const b1 = b.b;
        const b2 = b.c;
        const b3 = b.d;
        const b4 = b.tx;
        const b5 = b.ty;
        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))
            && Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2))
            && Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3))
            && Math.abs(a4 - b4) <= EPSILON * Math.max(1.0, Math.abs(a4), Math.abs(b4))
            && Math.abs(a5 - b5) <= EPSILON * Math.max(1.0, Math.abs(a5), Math.abs(b5)));
    }
equals ( b ) { if ( ! b ) return false ; const a0 = this . a ; const a1 = this . b ; const a2 = this . c ; const a3 = this . d ; const a4 = this . tx ; const a5 = this . ty ; const b0 = b . a ; const b1 = b . b ; const b2 = b . c ; const b3 = b . d ; const b4 = b . tx ; const b5 = b . ty ; 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 ) ) && Math . abs ( a2 - b2 ) <= EPSILON * Math . max ( 1.0 , Math . abs ( a2 ) , Math . abs ( b2 ) ) && Math . abs ( a3 - b3 ) <= EPSILON * Math . max ( 1.0 , Math . abs ( a3 ) , Math . abs ( b3 ) ) && Math . abs ( a4 - b4 ) <= EPSILON * Math . max ( 1.0 , Math . abs ( a4 ) , Math . abs ( b4 ) ) && Math . abs ( a5 - b5 ) <= EPSILON * Math . max ( 1.0 , Math . abs ( a5 ) , Math . abs ( b5 ) ) ) ; }
Returns whether or not the passed matrix has approximately the same elements in the
 same position as this one.
Returns whether or not the passed matrix has approximately the same elements in the same position as this one .