Searched refs:mDampingRatio (Results 1 – 4 of 4) sorted by relevance
85 double mDampingRatio = DAMPING_RATIO_MEDIUM_BOUNCY; field in SpringForce174 mDampingRatio = dampingRatio; in setDampingRatio()186 return (float) mDampingRatio; in getDampingRatio()221 double c = 2 * mNaturalFreq * mDampingRatio; in getAcceleration()256 if (mDampingRatio > 1) { in init()258 mGammaPlus = -mDampingRatio * mNaturalFreq in init()259 + mNaturalFreq * Math.sqrt(mDampingRatio * mDampingRatio - 1); in init()260 mGammaMinus = -mDampingRatio * mNaturalFreq in init()261 - mNaturalFreq * Math.sqrt(mDampingRatio * mDampingRatio - 1); in init()262 } else if (mDampingRatio >= 0 && mDampingRatio < 1) { in init()[all …]
191 return mSpring.mDampingRatio > 0; in canSkipToEnd()
34 private float mDampingRatio = 1.0f; field in MainActivity87 anim1X.getSpring().setStiffness(mStiffness).setDampingRatio(mDampingRatio); in onCreate()88 anim1Y.getSpring().setStiffness(mStiffness).setDampingRatio(mDampingRatio); in onCreate()89 anim2X.getSpring().setStiffness(mStiffness).setDampingRatio(mDampingRatio); in onCreate()90 anim2Y.getSpring().setStiffness(mStiffness).setDampingRatio(mDampingRatio); in onCreate()126 mDampingRatio = i / 80.0f; in setupSeekBars()128 mDampingRatio = (float) Math.exp((i - 90) / 10.0); in setupSeekBars()130 mDampingRatio = 1; in setupSeekBars()132 drTxt.setText(String.format("%.4f", (float) mDampingRatio)); in setupSeekBars()
35 private float mDampingRatio; field in SpringActivity93 anim.getSpring().setDampingRatio(mDampingRatio).setStiffness(mStiffness); in onCreate()111 mDampingRatio = i / 80.0f; in setupSeekBars()113 mDampingRatio = (float) Math.exp((i - 90) / 10.0); in setupSeekBars()115 mDampingRatio = 1; in setupSeekBars()117 drTxt.setText(String.format("%.4f", (float) mDampingRatio)); in setupSeekBars()