
As shown in the image, formulae or method how to calculate smooth curved line is needed.The red line is the line which will look at the end after solving.
I'll appreciate your help / discussion.
I need mathematical formulae and may be how to solve it using scipy python package.
Actually, you will gain more flexibility if you use cubic Bezier curves.
This for the first problem:
The advantage of the cubic Bezier is that you can also seamlessly deal with the cases such as where the two direction lines don't cross. For example
with output