Beispiel #1
0
  public void setCenterY(float centerY) {
    if ((points == null) || (center == null)) {
      checkPoints();
    }

    float yDiff = centerY - getCenterY();
    setY(y + yDiff);
  }
Beispiel #2
0
 public void translate(int deltaX, int deltaY) {
   setX(x + deltaX);
   setY(y + deltaY);
 }
Beispiel #3
0
 public void setLocation(float x, float y) {
   setX(x);
   setY(y);
 }
Beispiel #4
0
 public void setLocation(Vector2f loc) {
   setX(loc.x);
   setY(loc.y);
 }