Home
last modified time | relevance | path

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

/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java147 private float mPosY; field in AccelerometerPlayActivity.SimulationView.Particle
188 final float y = mPosY + mOneMinusFriction * dTC * (mPosY - mLastPosY) + mAccelY in computePhysics()
191 mLastPosY = mPosY; in computePhysics()
193 mPosY = y; in computePhysics()
208 final float y = mPosY; in resolveCollisionWithBounds()
215 mPosY = ymax; in resolveCollisionWithBounds()
217 mPosY = -ymax; in resolveCollisionWithBounds()
286 float dy = ball.mPosY - curr.mPosY; in update()
301 curr.mPosY -= dy * c; in update()
303 ball.mPosY += dy * c; in update()
[all …]
/development/samples/CrossCompatibility/src/com/example/android/touchexample/
DTouchExampleView.java28 private float mPosY; field in TouchExampleView
60 canvas.translate(mPosX, mPosY); in onDraw()
69 mPosY += dy; in onDrag()