nodify icon indicating copy to clipboard operation
nodify copied to clipboard

[Question] How to detect whether two Connections intersect or are close enough?

Open Summpot opened this issue 6 months ago • 0 comments

I would like to implement this effect in StepConnection or CircuitConnection. image I also want a certain segment of the StepConnection to be draggable in the direction perpendicular to the line, and to prevent any draggable segments of two StepConnections from overlapping. It all seems to require detecting if the lines intersect or are close enough. However, I don't see any good way to get the actual path of the line. Does anyone have any suggestions? Thanks!

Summpot avatar Aug 23 '24 05:08 Summpot