Searched refs:oldVelocity (Results 1 – 1 of 1) sorted by relevance
61 float oldVelocity = mCurrent; in interpolate() local65 float directionalAcceleration = calculateAcceleration(oldVelocity, mAcceleration, mTarget); in interpolate()72 float positionOffset = (oldVelocity * secondsDelta) + scaledAcceleration; in interpolate()75 float newVelocity = oldVelocity + (directionalAcceleration * secondsDelta); in interpolate()79 if (passedTarget(oldVelocity, newVelocity, mTarget)) { in interpolate()92 private boolean passedTarget(float oldVelocity, float newVelocity, float targetVelocity) { in passedTarget() argument95 if (oldVelocity < targetVelocity && newVelocity > targetVelocity) { in passedTarget()97 } else if (oldVelocity > targetVelocity && newVelocity < targetVelocity) { in passedTarget()