mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Put decomposed matrix values in sequence in which they would have to be applied again.
This commit is contained in:
parent
15c8652747
commit
53474aa5c0
1 changed files with 3 additions and 3 deletions
|
@ -493,7 +493,7 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
|
|||
if (a * d < b * c) {
|
||||
a = -a;
|
||||
b = -b;
|
||||
// We don't use c & d anymore, but this would be correct:
|
||||
// We don't need c & d anymore, but if we did, we'd have to do this:
|
||||
// c = -c;
|
||||
// d = -d;
|
||||
shear = -shear;
|
||||
|
@ -501,10 +501,10 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
|
|||
}
|
||||
|
||||
return {
|
||||
translation: Point.create(this._tx, this._ty),
|
||||
scaling: Point.create(scaleX, scaleY),
|
||||
rotation: -Math.atan2(b, a) * 180 / Math.PI,
|
||||
shearing: shear,
|
||||
translation: Point.create(this._tx, this._ty)
|
||||
shearing: shear
|
||||
};
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue