From 5a3346900ef7d54859740caf57678e79f1d6ce7c Mon Sep 17 00:00:00 2001 From: Andinus Date: Tue, 12 Oct 2021 15:00:22 +0530 Subject: Add code for translation This is much better than what I wrote for scaling. --- .../2d-transformations/Translation.svelte | 122 +++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 src/algorithms/2d-transformations/Translation.svelte (limited to 'src') diff --git a/src/algorithms/2d-transformations/Translation.svelte b/src/algorithms/2d-transformations/Translation.svelte new file mode 100644 index 0000000..9ce71da --- /dev/null +++ b/src/algorithms/2d-transformations/Translation.svelte @@ -0,0 +1,122 @@ + + +

Translation

+ +
+ + + +
+ +

Translation co-ordinates

+
+ + +
+ +{#if points.length > 0} + +{/if} +
+{#if points.length > 0} +

Original Points

+ + + + + + + + + + {#each points as point (point.id)} + + + + + + {/each} + +
Deletexy
+ + {point.x}{point.y}
+{/if} + +
+ + -- cgit 1.4.1-2-gfad0