static inline double releaseArea(ScrollAnimationSmooth::Curve curve, double startT, double endT) { double startValue = curveIntegralAt(curve, 1 - endT); double endValue = curveIntegralAt(curve, 1 - startT); return endValue - startValue; }
double ScrollAnimatorNone::PerAxisData::releaseArea(Curve curve, double startT, double endT) { double startValue = curveIntegralAt(curve, 1 - endT); double endValue = curveIntegralAt(curve, 1 - startT); return endValue - startValue; }
double ScrollAnimator::PerAxisData::attackArea(Curve curve, double startT, double endT) { double startValue = curveIntegralAt(curve, startT); double endValue = curveIntegralAt(curve, endT); return endValue - startValue; }