Home
last modified time | relevance | path

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

/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
DFlingAnimation.java206 private final DynamicAnimation.MassState mMassState = new DynamicAnimation.MassState(); field in FlingAnimation.DragForce
217 mMassState.mVelocity = (float) (velocity * Math.exp((deltaT / 1000f) * mFriction)); in updateValueAndVelocity()
218 mMassState.mValue = (float) (value - velocity / mFriction in updateValueAndVelocity()
220 if (isAtEquilibrium(mMassState.mValue, mMassState.mVelocity)) { in updateValueAndVelocity()
221 mMassState.mVelocity = 0f; in updateValueAndVelocity()
223 return mMassState; in updateValueAndVelocity()
DSpringForce.java107 private final DynamicAnimation.MassState mMassState = new DynamicAnimation.MassState(); field in SpringForce
313 mMassState.mValue = (float) (displacement + mFinalPosition); in updateValues()
314 mMassState.mVelocity = (float) currentVelocity; in updateValues()
315 return mMassState; in updateValues()