Skip to content

Commit 5b4280d

Browse files
committed
Removed the matrix.
1 parent 35fd29a commit 5b4280d

6 files changed

Lines changed: 7 additions & 13 deletions

File tree

src/core/Stage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ Phaser.Stage = function (game) {
4646
this.exists = true;
4747

4848
/**
49-
* @property {PIXI.Matrix} worldTransform - Current transform of the object based on world (parent) factors
49+
* @property {Phaser.Matrix} worldTransform - Current transform of the object based on world (parent) factors
5050
* @private
5151
* @readOnly
5252
*/
53-
this.worldTransform = new PIXI.Matrix();
53+
this.worldTransform = new Phaser.Matrix();
5454

5555
/**
5656
* @property {Phaser.Stage} stage - The stage reference (the Stage is its own stage)

src/gameobjects/components/ScaleMinMax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Phaser.Component.ScaleMinMax.prototype = {
5050
*
5151
* @method
5252
* @private
53-
* @param {PIXI.Matrix} wt - The updated worldTransform matrix.
53+
* @param {Phaser.Matrix} wt - The updated worldTransform matrix.
5454
*/
5555
checkTransform: function (wt) {
5656

src/geom/Matrix.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,4 @@ Phaser.Matrix.prototype = {
385385
};
386386

387387
Phaser.identityMatrix = new Phaser.Matrix();
388-
389388
Phaser.tempMatrix = new Phaser.Matrix();
390-
391-
// Because PIXI uses its own type, we'll replace it with ours to avoid duplicating code or confusion.
392-
PIXI.Matrix = Phaser.Matrix;
393-
PIXI.identityMatrix = Phaser.identityMatrix;
394-

src/pixi/display/DisplayObject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ PIXI.DisplayObject = function () {
142142
* that happens this property will contain values based on the previous frame. Be mindful of this if
143143
* accessing this property outside of the normal game flow, i.e. from an asynchronous event callback.
144144
*
145-
* @property {PIXI.Matrix} worldTransform
145+
* @property {Phaser.Matrix} worldTransform
146146
* @readOnly
147147
*/
148-
this.worldTransform = new PIXI.Matrix();
148+
this.worldTransform = new Phaser.Matrix();
149149

150150
/**
151151
* The coordinates, in pixels, of this DisplayObject within the world.

src/pixi/display/DisplayObjectContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ PIXI.DisplayObjectContainer.prototype.getBounds = function (targetCoordinateSpac
308308
{
309309
var matrixCache = targetCoordinateSpace.worldTransform;
310310

311-
targetCoordinateSpace.worldTransform = PIXI.identityMatrix;
311+
targetCoordinateSpace.worldTransform = Phaser.identityMatrix;
312312

313313
for (i = 0; i < targetCoordinateSpace.children.length; i++)
314314
{

src/pixi/display/Sprite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ PIXI.Sprite.prototype.getLocalBounds = function () {
322322

323323
var matrixCache = this.worldTransform;
324324

325-
this.worldTransform = PIXI.identityMatrix;
325+
this.worldTransform = Phaser.identityMatrix;
326326

327327
for (var i = 0; i < this.children.length; i++)
328328
{

0 commit comments

Comments
 (0)