export default class Vector2 {
	static ZERO = new Vector2(0, 0);

	constructor(x, y) {
		this.x = x;
		this.y = y ?? x;
	}

	/**
	 * @returns {Vector2}
	 */
	round() {
		this.x = Math.round(this.x);
		this.y = Math.round(this.y);
		return this;
	}
}