From 14bfb4c78e2becac7a7b1a55bf7bca989f2f9a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 15 Feb 2011 22:35:25 +0000 Subject: [PATCH] Make Matrix#toString() behave the same as in Scriptographer. --- src/basic/Matrix.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/basic/Matrix.js b/src/basic/Matrix.js index 3713bf5b..70cd4c76 100644 --- a/src/basic/Matrix.js +++ b/src/basic/Matrix.js @@ -166,9 +166,9 @@ var Matrix = Base.extend({ * "matrix(a,b,c,d,e,f)". */ toString: function() { - // TODO: Make behave the same as in Scriptographer - return 'matrix(' + [this._m00, this._m10, this._m01, this._m11, - this._m02, this._m12].join(',') + ')'; + return '[[' + + [this._m00, this._m10, this._m01].join(', ') + '], [' + + [this._m11, this._m02, this._m12].join(', ') + ']]'; }, /**