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

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