about summary refs log tree commit diff stats
path: root/src/algorithms/2d-transformations
diff options
context:
space:
mode:
Diffstat (limited to 'src/algorithms/2d-transformations')
-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) {
03-15 21:03:12 -0700 committer Kartik Agaram <vc@akkartik.com> 2020-03-15 21:03:12 -0700 6153 - switch 'main' to use Mu strings' href='/akkartik/mu/commit/mu-init-test.subx?h=main&id=c48ce3c8bfb6d1578f2530ed84b8e7b25d435b6d'>c48ce3c8 ^
7ca19e4e ^
6070c23e ^
7ca19e4e ^













1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37