MCPcopy Create free account
hub / github.com/microsoft/SandDance / basis

Function basis

docs/app/js/sanddance-app.js:128233–128236  ·  view source on GitHub ↗
(t1, v0, v1, v2, v3)

Source from the content-addressed store, hash-verified

128231parcelHelpers.defineInteropFlag(exports);
128232parcelHelpers.export(exports, "basis", ()=>basis);
128233function basis(t1, v0, v1, v2, v3) {
128234 var t2 = t1 * t1, t3 = t2 * t1;
128235 return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6;
128236}
128237exports.default = function(values) {
128238 var n = values.length - 1;
128239 return function(t) {

Callers 1

sanddance-app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected