Minifier matrix._transformCoordinates function

This commit is contained in:
sapics 2016-01-26 12:07:34 +09:00
parent 1dcb19ec3b
commit 095cd47c1c

View file

@ -568,13 +568,12 @@ var Matrix = Base.extend(/** @lends Matrix# */{
_transformCoordinates: function(src, dst, count) {
var i = 0,
j = 0,
max = 2 * count;
while (i < max) {
var x = src[i++],
y = src[i++];
dst[j++] = x * this._a + y * this._b + this._tx;
dst[j++] = x * this._c + y * this._d + this._ty;
var x = src[i],
y = src[i+1];
dst[i++] = x * this._a + y * this._b + this._tx;
dst[i++] = x * this._c + y * this._d + this._ty;
}
return dst;
},