mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Minifier matrix._transformCoordinates function
This commit is contained in:
parent
1dcb19ec3b
commit
095cd47c1c
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue