From bc11ffba2999c760f58a893e8f3dd6bd6b6f0cc6 Mon Sep 17 00:00:00 2001 From: VSThoms <86515081+VSThoms@users.noreply.github.com> Date: Tue, 26 Oct 2021 10:13:19 +0530 Subject: Update Scaling.svelte This variable should be immutable --- src/algorithms/2d-transformations/Scaling.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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. -- cgit 1.4.1-2-gfad0