mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-15 17:29:52 -04:00
Add Matrix#createShiftless(), to return a copy of the matrix that lacks the translation.
This commit is contained in:
parent
670512d123
commit
8ddf5a3d90
1 changed files with 4 additions and 0 deletions
|
@ -421,6 +421,10 @@ var Matrix = this.Matrix = Base.extend({
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
createShiftless: function() {
|
||||||
|
return Matrix.create(this._m00, this._m10, this._m01, this._m11, 0, 0);
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets this transform to a scaling transformation.
|
* Sets this transform to a scaling transformation.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue