Home
last modified time | relevance | path

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

/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java146 private float mPosX; field in AccelerometerPlayActivity.SimulationView.Particle
186 final float x = mPosX + mOneMinusFriction * dTC * (mPosX - mLastPosX) + mAccelX in computePhysics()
190 mLastPosX = mPosX; in computePhysics()
192 mPosX = x; in computePhysics()
207 final float x = mPosX; in resolveCollisionWithBounds()
210 mPosX = xmax; in resolveCollisionWithBounds()
212 mPosX = -xmax; in resolveCollisionWithBounds()
285 float dx = ball.mPosX - curr.mPosX; in update()
300 curr.mPosX -= dx * c; in update()
302 ball.mPosX += dx * c; in update()
[all …]
/development/samples/CrossCompatibility/src/com/example/android/touchexample/
DTouchExampleView.java27 private float mPosX; field in TouchExampleView
60 canvas.translate(mPosX, mPosY); in onDraw()
68 mPosX += dx; in onDrag()