comments, comments, comments, refactor, refactor, refactor
This commit is contained in:
parent
ff3c31f077
commit
8b86437e06
6 changed files with 172 additions and 27 deletions
|
|
@ -1,27 +1,54 @@
|
|||
/**
|
||||
* 2D Point.
|
||||
*/
|
||||
class Position {
|
||||
/**
|
||||
* X coordinate.
|
||||
* @private
|
||||
*/
|
||||
private _x: number;
|
||||
|
||||
/**
|
||||
* Y coordinate.
|
||||
* @private
|
||||
*/
|
||||
private _y: number;
|
||||
|
||||
//region Getter & Setter
|
||||
|
||||
/**
|
||||
* Get x.
|
||||
*/
|
||||
get x(): number {
|
||||
return this._x;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set x.
|
||||
* @param value
|
||||
*/
|
||||
set x(value: number) {
|
||||
this._x = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get y.
|
||||
*/
|
||||
get y(): number {
|
||||
return this._y;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set y.
|
||||
* @param value
|
||||
*/
|
||||
set y(value: number) {
|
||||
this._y = value;
|
||||
}
|
||||
//endregion
|
||||
|
||||
/**
|
||||
* Constructs the position
|
||||
* Constructs the position.
|
||||
* @param x x-Position
|
||||
* @param y y-Position
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue