dist/melonjs.js
function multiplyVectorInverse(v) {
         var a = this.val,
             x = v.x,
             y = v.y;
         var invD = 1 / (a[0] * a[4] + a[3] * -a[1]);
         v.x = a[4] * invD * x + -a[3] * invD * y + (a[7] * a[3] - a[6] * a[4]) * invD;
         v.y = a[0] * invD * y + -a[1] * invD * x + (-a[7] * a[0] + a[6] * a[1]) * invD;
         return v;
       }
function multiplyVectorInverse(v) {
         var a = this.val,
             x = v.x,
             y = v.y;
         var invD = 1 / (a[0] * a[4] + a[3] * -a[1]);
         v.x = a[4] * invD * x + -a[3] * invD * y + (a[7] * a[3] - a[6] * a[4]) * invD;
         v.y = a[0] * invD * y + -a[1] * invD * x + (-a[7] * a[0] + a[6] * a[1]) * invD;
         return v;
       }
function multiplyVectorInverse ( v ) { var a = this . val , x = v . x , y = v . y ; var invD = 1 / ( a [ 0 ] * a [ 4 ] + a [ 3 ] * - a [ 1 ] ) ; v . x = a [ 4 ] * invD * x + - a [ 3 ] * invD * y + ( a [ 7 ] * a [ 3 ] - a [ 6 ] * a [ 4 ] ) * invD ; v . y = a [ 0 ] * invD * y + - a [ 1 ] * invD * x + ( - a [ 7 ] * a [ 0 ] + a [ 6 ] * a [ 1 ] ) * invD ; return v ; }
Transforms the given vector using the inverted current matrix.
@name multiplyVector
@memberOf me.Matrix2d
@function
@param {me.Vector2d} vector the vector object to be transformed
@return {me.Vector2d} result vector object. Useful for chaining method calls.
Transforms the given vector using the inverted current matrix .