function o(o){var e=o.velocity,t=void 0===e?0:e,n=o.from,i=void 0===n?0:n,r=o.power,v=void 0===r?.8:r,d=o.timeConstant,a=void 0===d?350:d,u=o.restDelta,f=void 0===u?.5:u,l=o.modifyTarget,c={done:!1,value:i},p=v*t,m=i+p,x=void 0===l?m:l(m);return x!==m&&(p=x-i),{next:function(o){var e=-p*Math.exp(-o/a);return c.done=!(e>f||e<-f),c.value=c.done?x:x+e,c},flipTarget:function(){}}}export{o as decay};
//# sourceMappingURL=decay.js.map
