ProzillaOS/src/features/math/vector2.js

8 lines
No EOL
124 B
JavaScript

export default class Vector2 {
static ZERO = new Vector2(0, 0);
constructor(x, y) {
this.x = x;
this.y = y ?? x;
}
}