Home
last modified time | relevance | path

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

/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java205 final float xmax = mHorizontalBound; in resolveCollisionWithBounds() local
209 if (x > xmax) { in resolveCollisionWithBounds()
210 mPosX = xmax; in resolveCollisionWithBounds()
211 } else if (x < -xmax) { in resolveCollisionWithBounds()
212 mPosX = -xmax; in resolveCollisionWithBounds()