Home
last modified time | relevance | path

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

/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
DSpringForce.java216 public float getAcceleration(float lastDisplacement, float lastVelocity) { in getAcceleration() argument
223 return (float) (-k * lastDisplacement - c * lastVelocity); in getAcceleration()
274 DynamicAnimation.MassState updateValues(double lastDisplacement, double lastVelocity, in updateValues() argument
284 double coeffA = lastDisplacement - (mGammaMinus * lastDisplacement - lastVelocity) in updateValues()
286 double coeffB = (mGammaMinus * lastDisplacement - lastVelocity) in updateValues()
295 double coeffB = lastVelocity + mNaturalFreq * lastDisplacement; in updateValues()
303 * lastDisplacement + lastVelocity); in updateValues()