Further refined code from 095cd47c1c

This commit is contained in:
Jürg Lehni 2016-01-26 16:59:27 +01:00
parent b828c7733e
commit a38834b81d

View file

@ -567,13 +567,11 @@ var Matrix = Base.extend(/** @lends Matrix# */{
},
_transformCoordinates: function(src, dst, count) {
var i = 0,
max = 2 * count;
while (i < max) {
for (var i = 0, max = 2 * count; i < max; i += 2) {
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;
y = src[i + 1];
dst[i] = x * this._a + y * this._b + this._tx;
dst[i + 1] = x * this._c + y * this._d + this._ty;
}
return dst;
},