We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dbcf88 commit 97ebfceCopy full SHA for 97ebfce
1 file changed
src/geom/Matrix.js
@@ -140,8 +140,11 @@ Phaser.Matrix.prototype.apply = function(pos, newPos)
140
{
141
newPos = newPos || new Phaser.Point();
142
143
- newPos.x = this.a * pos.x + this.c * pos.y + this.tx;
144
- newPos.y = this.b * pos.x + this.d * pos.y + this.ty;
+ var x = pos.x;
+ var y = pos.y
145
+
146
+ newPos.x = this.a * x + this.c * y + this.tx;
147
+ newPos.y = this.b * x + this.d * y + this.ty;
148
149
return newPos;
150
};
0 commit comments