Home
last modified time | relevance | path

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

/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java152 private float mOneMinusFriction; field in AccelerometerPlayActivity.SimulationView.Particle
158 mOneMinusFriction = 1.0f - sFriction + r; in Particle()
186 final float x = mPosX + mOneMinusFriction * dTC * (mPosX - mLastPosX) + mAccelX in computePhysics()
188 final float y = mPosY + mOneMinusFriction * dTC * (mPosY - mLastPosY) + mAccelY in computePhysics()