Пример #1
0
    public Rect(TextureLocation texture) {
      this.texture = texture;

      Rectangle rect = texture.getTextureRect();
      this.longestEdge = Math.min(rect.width, rect.height);
      this.area = rect.width * rect.height;
    }
Пример #2
0
 public void place(float x, float y) {
   texture.getTextureRect().x = x;
   texture.getTextureRect().y = y;
   placed = true;
 }