Home
last modified time | relevance | path

Searched refs:oldVelocity (Results 1 – 1 of 1) sorted by relevance

/external/replicaisland/src/com/replica/replicaisland/
DInterpolator.java61 float oldVelocity = mCurrent; in interpolate() local
65 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() argument
95 if (oldVelocity < targetVelocity && newVelocity > targetVelocity) { in passedTarget()
97 } else if (oldVelocity > targetVelocity && newVelocity < targetVelocity) { in passedTarget()