We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1229c79 commit 57ff6f4Copy full SHA for 57ff6f4
1 file changed
src/pixi/geom/Matrix.js
@@ -153,9 +153,11 @@ PIXI.Matrix.prototype.applyInverse = function(pos, newPos)
153
newPos = newPos || new PIXI.Point();
154
155
var id = 1 / (this.a * this.d + this.c * -this.b);
156
-
157
- newPos.x = this.d * id * pos.x + -this.c * id * pos.y + (this.ty * this.c - this.tx * this.d) * id;
158
- newPos.y = this.a * id * pos.y + -this.b * id * pos.x + (-this.ty * this.a + this.tx * this.b) * id;
+ var x = pos.x;
+ var y = pos.y;
+
159
+ newPos.x = this.d * id * x + -this.c * id * y + (this.ty * this.c - this.tx * this.d) * id;
160
+ newPos.y = this.a * id * y + -this.b * id * x + (-this.ty * this.a + this.tx * this.b) * id;
161
162
return newPos;
163
};
0 commit comments