We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e97146 commit dfb8d7cCopy full SHA for dfb8d7c
src/math/matrix.js
@@ -125,7 +125,7 @@ export default class Matrix {
125
get rotation () {
126
if (!this.hasRotation) {
127
this.hasRotation = true;
128
- this._rotation = Math.atan2(-this._matrix[3], this._matrix[0]);
+ this._rotation = -Math.atan2(-this._matrix[3], this._matrix[0]);
129
}
130
131
return this._rotation;
@@ -196,8 +196,8 @@ export default class Matrix {
196
const cos = Math.cos(this._rotation);
197
198
this._matrix = [
199
- this._sx * cos, this._sy * sin, this._x,
200
- -this._sx * sin, this._sy * cos, this._y
+ this._sx * cos, this._sx * -sin, this._x,
+ this._sy * sin, this._sy * cos, this._y
201
];
202
203
0 commit comments