added set methods
This commit is contained in:
parent
3c1e43cf40
commit
f707008ffb
1 changed files with 8 additions and 0 deletions
|
|
@ -46,6 +46,14 @@ public class Vector2i implements Comparable{
|
|||
return y;
|
||||
}
|
||||
|
||||
public void setX(int sx){
|
||||
x = sx;
|
||||
}
|
||||
|
||||
public void setY(int sy){
|
||||
y = sy;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add to the vector
|
||||
* @param i The amount to add
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue