Code exist for smallest curve between two points with slope?

I‘m sure someone did it before, but …

2 Likes