fix: make vector scaling round
This commit is contained in:
parent
996addcaf8
commit
4f9f6e0195
@ -111,7 +111,7 @@ public class IntVector2 implements Serializable {
|
||||
}
|
||||
|
||||
public IntVector2 scale(float x, float y) {
|
||||
return new IntVector2((int)(this.x * x), (int)(this.y * y));
|
||||
return new IntVector2(Math.round(this.x * x), Math.round(this.y * y));
|
||||
}
|
||||
|
||||
public IntVector2 scale(float scalar) {
|
||||
|
Loading…
Reference in New Issue
Block a user