Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java502 protected float mPositionY;
511 mPositionY = y;
524 return pythag(mPositionX - x, mPositionY - y);
528 return distanceTo(other.mPositionX, other.mPositionY);
544 mPositionY += mVelocityY * tau;
563 || mPositionY < 0 || mPositionY >= height;
575 while (mPositionY <= -mSize) {
576 mPositionY += height + mSize * 2;
578 while (mPositionY >= height + mSize) {
579 mPositionY -= height + mSize * 2;
[all …]
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java499 protected float mPositionY; field in GameView.Sprite
508 mPositionY = y; in setPosition()
521 return pythag(mPositionX - x, mPositionY - y); in distanceTo()
525 return distanceTo(other.mPositionX, other.mPositionY); in distanceTo()
547 mPositionY += mVelocityY * tau; in step()
587 || mPositionY < 0 || mPositionY >= height; in isOutsidePlayfield()
599 while (mPositionY <= -mSize) { in wrapAtPlayfieldBoundary()
600 mPositionY += height + mSize * 2; in wrapAtPlayfieldBoundary()
602 while (mPositionY >= height + mSize) { in wrapAtPlayfieldBoundary()
603 mPositionY -= height + mSize * 2; in wrapAtPlayfieldBoundary()
[all …]