Thunder2103 / Algorithms-Visualiser

A collection of useful algorithms
2 stars 1 forks source link

Edge case handling for increases in edge length #78

Closed Thunder2103 closed 1 month ago

Thunder2103 commented 1 month ago

Need to implement conditions in case an edges increase in length causes a node to be pushed off screen.

Notes:

Thunder2103 commented 1 month ago

An easier solution is placing the node back on screen then moving the other node and edge by the same amount the off screen node was moved to preserve the edges length