Put decomposed matrix values in sequence in which they would have to be applied again.

This commit is contained in:
Jürg Lehni 2013-02-09 11:21:16 -08:00
parent 15c8652747
commit 53474aa5c0

View file

@ -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
};
},