mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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) {
|
||||
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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue