I am looking for a mathematical formula that, in a graph depicting Y as a function of X, will have a certain slope in front of the specified starting point (X value or even better, X and Y coordinates), then after that it will draw an arc with the specified radius, which will end when it will reach the second given slope, and from the point further there will be another straight line of this second slope.
I know that since it is Y as a function of X, the tilt parameters must be greater than exactly -90 and less than exactly 90 degrees; I am not worried about any violations at (or beyond) these extremes.
In fact, I would be even happier with a formula that takes the start and end points (2d coordinates), as well as the start and end slopes; and will have two arcs between them (with a straight line between them, when necessary), easily connecting two straight lines (obviously, X of the endpoint should be larger than X for the start point, I donβt care what happens when itβs not So). But I suggest that such a formula may be much harder to come up with than what I first asked.
ps: along the "arc" - the middle segment of the circle; as if both axes of the graph have the same scale, the arcs will have the correct aspect ratio for a circle with the same radius.
source share