Skip to content

Instantly share code, notes, and snippets.

@vkhorikov
Created July 13, 2017 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vkhorikov/b4dba0629cbc1627f804f4761f3fae55 to your computer and use it in GitHub Desktop.
Save vkhorikov/b4dba0629cbc1627f804f4761f3fae55 to your computer and use it in GitHub Desktop.
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