+
+
+
▸
+
setCenter(center)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters
+
+
+
+
+
center (Point)
+ , le nouveau centre du cercle.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules-examples/tp1.js b/modules-examples/tp1.js
index 6be34e3..ac94374 100644
--- a/modules-examples/tp1.js
+++ b/modules-examples/tp1.js
@@ -89,6 +89,9 @@ export class Circle{
this.#color = color;
}
+ /**
+ * @param {Point} center, le nouveau centre du cercle.
+ */
setCenter(center){
this.#center = center;
}
@@ -210,4 +213,4 @@ export function populateTable(node,
export function randomColor(i){
const base = (i % 256).toString(16);
return `${base}${base}${base}`
-}
\ No newline at end of file
+}