From 8ddf5a3d90959b87b6b875cf111f1d8e4f94078f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 6 Mar 2011 21:10:47 +0000 Subject: [PATCH] Add Matrix#createShiftless(), to return a copy of the matrix that lacks the translation. --- src/basic/Matrix.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/basic/Matrix.js b/src/basic/Matrix.js index cd16d694..4628a429 100644 --- a/src/basic/Matrix.js +++ b/src/basic/Matrix.js @@ -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. *