https://discord.com/channels/581738731934056449/1427983312143781938/1427983312143781938
After a discussion on Discord this gist creates a line between several points with optional rectangular direction hints similar to Tikz ("-|" and "|-"), as well as corner radii.
It also corrects for the default behavior of .add_tip() to add a slant to a given angled line object.
The syntax should be rather self-explanatory together with the example.
LineThroughPoints([(p1,""),(p2,""),(p3,"")])creates a line which goes straight from p1 to p2 to p3, optinally with an arrow tip at the end.
LineThroughPoints([(p1,"-|"),(p2,"")])creates a line which leaves p1 horizontally until it is right above p2, then it drops vertically to p2.
LineThroughPoints([(p1,"|-"),(p2,"")])creates a line which leaves p1 vertically until it is on the same height as p2, then it goes horizontally to p2.
The directional argument of the last point doesn't matter.
Additional a global radius= can be defined to round the midway corners between the control points,
and/or individual radii can be given to each rectangular midway-corner.