added set methods

This commit is contained in:
Ziver Koc 2007-05-07 09:48:25 +00:00
parent 3c1e43cf40
commit f707008ffb

View file

@ -46,6 +46,14 @@ public class Vector2i implements Comparable{
return y; return y;
} }
public void setX(int sx){
x = sx;
}
public void setY(int sy){
y = sy;
}
/** /**
* Add to the vector * Add to the vector
* @param i The amount to add * @param i The amount to add