railmapgen / rmp

Design your own rail map by freely dragging stations from different cities and connecting them with 135-degree rounded corners or perpendicular lines!
https://railmapgen.github.io/?app=rmp
GNU General Public License v3.0
90 stars 18 forks source link

Advanced auto simple path #558

Closed thekingofcity closed 8 months ago

thekingofcity commented 8 months ago

image

In short, no matter where the origin and target are, as long as the dot away from the origin with offsetFrom and the dot away from the target with offsetTo is a valid simple path case (k = 0 or ∞ and type is Diagonal or Perpendicular OR k = 1 or -1 and type is Diagonal or RotatePerpendicular), it should be a simple path.