about summary refs log tree commit diff stats
path: root/src/algorithms
diff options
context:
space:
mode:
Diffstat (limited to 'src/algorithms')
-rw-r--r--src/algorithms/2d-transformations/Translation.svelte8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/algorithms/2d-transformations/Translation.svelte b/src/algorithms/2d-transformations/Translation.svelte
index 9ce71da..dc1721a 100644
--- a/src/algorithms/2d-transformations/Translation.svelte
+++ b/src/algorithms/2d-transformations/Translation.svelte
@@ -23,13 +23,13 @@
     points = points.filter(item => item.id !== Number(id));
   }
 
-  let pointsArray = {x: [], y: []};
-  let translatedPointsArray = {x: [], y: []};
+  
 
   function translatePoints() {
     // Reset values.
-    pointsArray = {x: [], y: []};
-    translatedPointsArray = {x: [], y: []}
+  let pointsArray = {x: [], y: []};
+  let translatedPointsArray = {x: [], y: []};
+
 
     // Store the points in a matrix like array.
     for (const point of points) {