diff --git a/src/basic/Matrix.js b/src/basic/Matrix.js index 31af64a0..8e412546 100644 --- a/src/basic/Matrix.js +++ b/src/basic/Matrix.js @@ -301,10 +301,12 @@ var Matrix = this.Matrix = Base.extend({ * A faster version of transform that only takes one point and does not * attempt to convert it. */ - _transformPoint: function(point) { + _transformPoint: function(point, dest) { var x = point.x, y = point.y; - return Point.create( + if (!dest) + dest = new Point(Point.dont); + return dest.set( x * this._m00 + y * this._m01 + this._m02, x * this._m10 + y * this._m11 + this._m12 );