File size: 332 Bytes
bc20498 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
export default function(a, b) {
if (!b) b = [];
var n = a ? Math.min(b.length, a.length) : 0,
c = b.slice(),
i;
return function(t) {
for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;
return c;
};
}
export function isNumberArray(x) {
return ArrayBuffer.isView(x) && !(x instanceof DataView);
}
|