diff --git a/src/core/display/Transform.js b/src/core/display/Transform.js index 183fa0b..0adae1b 100644 --- a/src/core/display/Transform.js +++ b/src/core/display/Transform.js @@ -67,10 +67,10 @@ */ updateSkew() { - this._cx = Math.cos(this.rotation + this.skew._y); - this._sx = Math.sin(this.rotation + this.skew._y); - this._cy = -Math.sin(this.rotation - this.skew._x); // cos, added PI/2 - this._sy = Math.cos(this.rotation - this.skew._x); // sin, added PI/2 + this._cx = Math.cos(this._rotation + this.skew._y); + this._sx = Math.sin(this._rotation + this.skew._y); + this._cy = -Math.sin(this._rotation - this.skew._x); // cos, added PI/2 + this._sy = Math.cos(this._rotation - this.skew._x); // sin, added PI/2 } /** diff --git a/src/core/display/Transform.js b/src/core/display/Transform.js index 183fa0b..0adae1b 100644 --- a/src/core/display/Transform.js +++ b/src/core/display/Transform.js @@ -67,10 +67,10 @@ */ updateSkew() { - this._cx = Math.cos(this.rotation + this.skew._y); - this._sx = Math.sin(this.rotation + this.skew._y); - this._cy = -Math.sin(this.rotation - this.skew._x); // cos, added PI/2 - this._sy = Math.cos(this.rotation - this.skew._x); // sin, added PI/2 + this._cx = Math.cos(this._rotation + this.skew._y); + this._sx = Math.sin(this._rotation + this.skew._y); + this._cy = -Math.sin(this._rotation - this.skew._x); // cos, added PI/2 + this._sy = Math.cos(this._rotation - this.skew._x); // sin, added PI/2 } /** diff --git a/src/core/display/TransformStatic.js b/src/core/display/TransformStatic.js index e763127..ee0a843 100644 --- a/src/core/display/TransformStatic.js +++ b/src/core/display/TransformStatic.js @@ -73,10 +73,10 @@ */ updateSkew() { - this._cx = Math.cos(this.rotation + this.skew._y); - this._sx = Math.sin(this.rotation + this.skew._y); - this._cy = -Math.sin(this.rotation - this.skew._x); // cos, added PI/2 - this._sy = Math.cos(this.rotation - this.skew._x); // sin, added PI/2 + this._cx = Math.cos(this._rotation + this.skew._y); + this._sx = Math.sin(this._rotation + this.skew._y); + this._cy = -Math.sin(this._rotation - this.skew._x); // cos, added PI/2 + this._sy = Math.cos(this._rotation - this.skew._x); // sin, added PI/2 this._localID ++; }