Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java445 } while (mShip.distanceTo(positionX, positionY) < minDistance);
523 public float distanceTo(float x, float y) {
527 public float distanceTo(Sprite other) {
528 return distanceTo(other.mPositionX, other.mPositionY);
534 && distanceTo(other) <= Math.max(mSize, other.mSize)
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java422 if (currentShip.distanceTo(positionX, positionY) < minDistance) { in step()
520 public float distanceTo(float x, float y) { in distanceTo() method in GameView.Sprite
524 public float distanceTo(Sprite other) { in distanceTo() method in GameView.Sprite
525 return distanceTo(other.mPositionX, other.mPositionY); in distanceTo()
531 && distanceTo(other) <= Math.max(mSize, other.mSize) in collidesWith()