/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 built by swimly
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const linear = function (current, start, end, duration) {
  const change = end - start;
  const offset = change * current / duration;
  return offset + start;
};
const easeInOutCubic = function (current, start, end, duration) {
  const change = (end - start) / 2;
  let time = current / (duration / 2);
  if (time < 1) return change * time * time * time + start;
  time -= 2;
  return change * (time * time * time + 2) + start;
};

exports.easeInOutCubic = easeInOutCubic;
exports.linear = linear;
//# sourceMappingURL=easing.js.map
