diff options
author | VSThoms <86515081+VSThoms@users.noreply.github.com> | 2021-10-26 10:13:19 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-26 10:13:19 +0530 |
commit | bc11ffba2999c760f58a893e8f3dd6bd6b6f0cc6 (patch) | |
tree | b9076005b2cfebe61e66e1dfd6654e66aac74bc8 /src/algorithms | |
parent | 89299f7508cc5ce1f88c1629f6c7ab6d4e5b4a77 (diff) | |
download | dorado-bc11ffba2999c760f58a893e8f3dd6bd6b6f0cc6.tar.gz |
Update Scaling.svelte
This variable should be immutable
Diffstat (limited to 'src/algorithms')
-rw-r--r-- | src/algorithms/2d-transformations/Scaling.svelte | 2 |
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. |