import { velocityPerSecond } from "../../../../../../motion-utils/dist/es/velocity-per-second.js";
const velocitySampleDuration = 5;
function calcGeneratorVelocity(resolveValue, t, current) {
  const prevT = Math.max(t - velocitySampleDuration, 0);
  return velocityPerSecond(current - resolveValue(prevT), t - prevT);
}
export {
  calcGeneratorVelocity
};
//# sourceMappingURL=velocity.js.map
