about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2021-10-26 04:47:33 +0000
committerGitHub <noreply@github.com>2021-10-26 04:47:33 +0000
commit3b7af88f5480f2f95d95d9d7628495be3dd3e968 (patch)
tree048f30f664ba028bb57e78b52ff3aeb1914ecf22 /src
parent89299f7508cc5ce1f88c1629f6c7ab6d4e5b4a77 (diff)
parent61cb65a9d2bf0f0f2afe4843e7b5d719657f2877 (diff)
downloaddorado-3b7af88f5480f2f95d95d9d7628495be3dd3e968.tar.gz
Merge pull request #3 from justin-29/master
Update Translation.svelte
Diffstat (limited to 'src')
-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) {