mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Further refined code from 095cd47c1c
This commit is contained in:
parent
b828c7733e
commit
a38834b81d
1 changed files with 4 additions and 6 deletions
|
@ -567,13 +567,11 @@ var Matrix = Base.extend(/** @lends Matrix# */{
|
||||||
},
|
},
|
||||||
|
|
||||||
_transformCoordinates: function(src, dst, count) {
|
_transformCoordinates: function(src, dst, count) {
|
||||||
var i = 0,
|
for (var i = 0, max = 2 * count; i < max; i += 2) {
|
||||||
max = 2 * count;
|
|
||||||
while (i < max) {
|
|
||||||
var x = src[i],
|
var x = src[i],
|
||||||
y = src[i+1];
|
y = src[i + 1];
|
||||||
dst[i++] = x * this._a + y * this._b + this._tx;
|
dst[i] = x * this._a + y * this._b + this._tx;
|
||||||
dst[i++] = x * this._c + y * this._d + this._ty;
|
dst[i + 1] = x * this._c + y * this._d + this._ty;
|
||||||
}
|
}
|
||||||
return dst;
|
return dst;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue