예제 #1
0
 public void setPosition(Vector p) {
   position.x = p.x;
   position.y = p.y;
 }
예제 #2
0
 public void setPosition(double x, double y) {
   position.x = x;
   position.y = y;
 }
예제 #3
0
 public Vector getPosition(Vector p) {
   position.x = p.x;
   position.y = p.y;
   return position;
 }