Home Reference Source

main/commons/math/Vector2.js

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

export function Vector2(x, y) {
    return new Vector2Class(x, y);
}