about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorVSThoms <86515081+VSThoms@users.noreply.github.com>2021-10-26 10:13:19 +0530
committerGitHub <noreply@github.com>2021-10-26 10:13:19 +0530
commitbc11ffba2999c760f58a893e8f3dd6bd6b6f0cc6 (patch)
treeb9076005b2cfebe61e66e1dfd6654e66aac74bc8
parent89299f7508cc5ce1f88c1629f6c7ab6d4e5b4a77 (diff)
downloaddorado-bc11ffba2999c760f58a893e8f3dd6bd6b6f0cc6.tar.gz
Update Scaling.svelte
This variable should be immutable
-rw-r--r--src/algorithms/2d-transformations/Scaling.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algorithms/2d-transformations/Scaling.svelte b/src/algorithms/2d-transformations/Scaling.svelte
index 9f17fd1..a08d5ce 100644
--- a/src/algorithms/2d-transformations/Scaling.svelte
+++ b/src/algorithms/2d-transformations/Scaling.svelte
@@ -32,7 +32,7 @@
   }
 
   function solve() {
-    let scale_mat = [[scale_factor.x, 0], [0, scale_factor.y]];
+    const scale_mat = [[scale_factor.x, 0], [0, scale_factor.y]];
 
     scaled_points = [[], []];
     // Deep copy.