Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java501 protected float mPositionX;
510 mPositionX = x;
524 return pythag(mPositionX - x, mPositionY - y);
528 return distanceTo(other.mPositionX, other.mPositionY);
543 mPositionX += mVelocityX * tau;
562 return mPositionX < 0 || mPositionX >= width
569 while (mPositionX <= -mSize) {
570 mPositionX += width + mSize * 2;
572 while (mPositionX >= width + mSize) {
573 mPositionX -= width + mSize * 2;
[all …]
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java498 protected float mPositionX; field in GameView.Sprite
507 mPositionX = x; in setPosition()
521 return pythag(mPositionX - x, mPositionY - y); in distanceTo()
525 return distanceTo(other.mPositionX, other.mPositionY); in distanceTo()
546 mPositionX += mVelocityX * tau; in step()
586 return mPositionX < 0 || mPositionX >= width in isOutsidePlayfield()
593 while (mPositionX <= -mSize) { in wrapAtPlayfieldBoundary()
594 mPositionX += width + mSize * 2; in wrapAtPlayfieldBoundary()
596 while (mPositionX >= width + mSize) { in wrapAtPlayfieldBoundary()
597 mPositionX -= width + mSize * 2; in wrapAtPlayfieldBoundary()
[all …]