ktongue's picture
download
raw
363 Bytes
import {basis} from "./basis.js";
export default function(values) {
var n = values.length;
return function(t) {
var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),
v0 = values[(i + n - 1) % n],
v1 = values[i % n],
v2 = values[(i + 1) % n],
v3 = values[(i + 2) % n];
return basis((t - i / n) * n, v0, v1, v2, v3);
};
}

Xet Storage Details

Size:
363 Bytes
·
Xet hash:
a4d2148357fa0e9563e582de8ac11ad9cfa742a3440653f73c4a359c314cf69f

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.