Add Matrix#createShiftless(), to return a copy of the matrix that lacks the translation.

This commit is contained in:
Jürg Lehni 2011-03-06 21:10:47 +00:00
parent 670512d123
commit 8ddf5a3d90

View file

@ -421,6 +421,10 @@ var Matrix = this.Matrix = Base.extend({
return null;
},
createShiftless: function() {
return Matrix.create(this._m00, this._m10, this._m01, this._m11, 0, 0);
},
/**
* Sets this transform to a scaling transformation.
*