Searched refs:mPosX (Results 1 – 2 of 2) sorted by relevance
146 private float mPosX; field in AccelerometerPlayActivity.SimulationView.Particle186 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 …]
27 private float mPosX; field in TouchExampleView60 canvas.translate(mPosX, mPosY); in onDraw()68 mPosX += dx; in onDrag()