about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/algorithms/2d-transformations/Translation.svelte18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/algorithms/2d-transformations/Translation.svelte b/src/algorithms/2d-transformations/Translation.svelte
index a910cc6..4ae0ef7 100644
--- a/src/algorithms/2d-transformations/Translation.svelte
+++ b/src/algorithms/2d-transformations/Translation.svelte
@@ -104,6 +104,24 @@
       {/each}
     </tbody>
   </table>
+  <h4>Translation Points</h4>
+  <table>
+    <thead>
+      <tr>
+       
+        <th>x</th>
+        <th>y</th>
+      </tr>
+    </thead>
+    <tbody>
+      {#each translatedPointsArray.x as _, i}
+        <tr>
+          <td>{translatedPointsArray.x[i]}</td>
+          <td>{translatedPointsArray.y[i]}</td>
+        </tr>
+      {/each}
+    </tbody>
+  </table>
 {/if}
 
 <div id="algoChart"></div>