Value extrapolate(const TimeType&t) const { DurationType timeSinceUpdate=t-lastUpdateTime(); if (mFadeTime<timeSinceUpdate) { return mValuePresent.extrapolate(t); }else{ return mValuePast.extrapolate(t) .blend(mValuePresent.extrapolate(t), timeSinceUpdate/mFadeTime); } }
Value extrapolate(const TimeType&t) const { DurationType timeSinceUpdate = std::max(DurationType::zero(),t-lastUpdateTime()); if (mFadeTime<=timeSinceUpdate) { return mValuePresent.extrapolate(t); }else{ return mValuePast.extrapolate(t) .blend(mValuePresent.extrapolate(t), (float32)(timeSinceUpdate/mFadeTime)); } }