I am trying to draw a circle tangent to the line at point P and tangent to the arc.
The thick lines on the image above represent a curtain wall in a building. The point P (the end of the curve) should align with a grid at the exact location.
On a Cad software, I can fillet between the line and the curve with different radii to get a tangent as close as possible to point P.
I also tried drawing an intermediate curve between the line and the arc so it intersects the line perpendicular to P at the center point. But all these solutions are approximate and don't give an accurate tangent.
A variation I have to this problem is drawing a circle tangent to two arcs through a given point at one arc.