src/math/matrix2.js
function () {
            var val = this.val;

            var a = val[ 0 ], b = val[ 1 ], c = val[ 2 ],
                d = val[ 3 ], e = val[ 4 ], f = val[ 5 ],
                g = val[ 6 ], h = val[ 7 ], i = val[ 8 ];

            var ta = i * e - f * h,
                td = f * g - i * d,
                tg = h * d - e * g;

            var n = a * ta + b * td + c * tg;

            val[ 0 ] = ta / n;
            val[ 1 ] = ( c * h - i * b ) / n;
            val[ 2 ] = ( f * b - c * e ) / n;

            val[ 3 ] = td / n;
            val[ 4 ] = ( i * a - c * g ) / n;
            val[ 5 ] = ( c * d - f * a ) / n;

            val[ 6 ] = tg / n;
            val[ 7 ] = ( b * g - h * a ) / n;
            val[ 8 ] = ( e * a - b * d ) / n;

            return this;
        }
function () {
            var val = this.val;

            var a = val[ 0 ], b = val[ 1 ], c = val[ 2 ],
                d = val[ 3 ], e = val[ 4 ], f = val[ 5 ],
                g = val[ 6 ], h = val[ 7 ], i = val[ 8 ];

            var ta = i * e - f * h,
                td = f * g - i * d,
                tg = h * d - e * g;

            var n = a * ta + b * td + c * tg;

            val[ 0 ] = ta / n;
            val[ 1 ] = ( c * h - i * b ) / n;
            val[ 2 ] = ( f * b - c * e ) / n;

            val[ 3 ] = td / n;
            val[ 4 ] = ( i * a - c * g ) / n;
            val[ 5 ] = ( c * d - f * a ) / n;

            val[ 6 ] = tg / n;
            val[ 7 ] = ( b * g - h * a ) / n;
            val[ 8 ] = ( e * a - b * d ) / n;

            return this;
        }
function ( ) { var val = this . val ; var a = val [ 0 ] , b = val [ 1 ] , c = val [ 2 ] , d = val [ 3 ] , e = val [ 4 ] , f = val [ 5 ] , g = val [ 6 ] , h = val [ 7 ] , i = val [ 8 ] ; var ta = i * e - f * h , td = f * g - i * d , tg = h * d - e * g ; var n = a * ta + b * td + c * tg ; val [ 0 ] = ta / n ; val [ 1 ] = ( c * h - i * b ) / n ; val [ 2 ] = ( f * b - c * e ) / n ; val [ 3 ] = td / n ; val [ 4 ] = ( i * a - c * g ) / n ; val [ 5 ] = ( c * d - f * a ) / n ; val [ 6 ] = tg / n ; val [ 7 ] = ( b * g - h * a ) / n ; val [ 8 ] = ( e * a - b * d ) / n ; return this ; }
invert this matrix, causing it to apply the opposite transformation.
@name invert
@memberOf me.Matrix2d
@function
@return {me.Matrix2d} Reference to this object for method chaining
invert this matrix causing it to apply the opposite transformation .