-
-
Save vkhorikov/b4dba0629cbc1627f804f4761f3fae55 to your computer and use it in GitHub Desktop.
Game Dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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