Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Game Dev
export class Vector {
private _x: number;
private _y: number;
public getX(): number {
return this._x;
}
public getY(): number {
return this._y;
}
public set(x: number, y: number): void {
this._x = x;
this._y = y;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment