added documentation
This commit is contained in:
1 parent
d8fac33b96
commit
1e7c3b5fbf
1 file changed
+9
@@ -13,10 +13,19 @@ export class Point{
|
|||||||
this.#x = x;
|
this.#x = x;
|
||||||
this.#y = y;
|
this.#y = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retoure la coordonée X du point.
|
||||||
|
* @returns {number}
|
||||||
|
*/
|
||||||
getX(){
|
getX(){
|
||||||
return this.#x;
|
return this.#x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retoure la coordonée Y du point.
|
||||||
|
* @returns {number}
|
||||||
|
*/
|
||||||
getY(){
|
getY(){
|
||||||
return this.#y;
|
return this.#y;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user