Vector2D.java (477B)
1 2 package nl.isygameclient.util; 3 4 public class Vector2D<X, Y> { 5 private X x; 6 private Y y; 7 8 public Vector2D(X x, Y y) { 9 this.x = x; 10 this.y = y; 11 } 12 13 public void setX(X x) { 14 this.x = x; 15 } 16 17 public void setY(Y y) { 18 this.y = y; 19 } 20 21 public X getX() { 22 return x; 23 } 24 25 public Y getY() { 26 return y; 27 } 28 29 @Override 30 public String toString() { 31 return "(x" + x + " y" + y + ")"; 32 } 33 }