fix: make vector scaling round
This commit is contained in:
@ -111,7 +111,7 @@ public class IntVector2 implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public IntVector2 scale(float x, float y) {
|
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) {
|
public IntVector2 scale(float scalar) {
|
||||||
|
Reference in New Issue
Block a user