I am trying to generate a circle from three parameters on Grasshopper:

A tangency curve.

A second tangency curve.

The abscissa of the circle to create.

Here is an example to be clearer:

The two tangency curves are in red and the line in red represents the line where the center of the circle to be generated can be found (constant abscissa between the two curves).

I tried with Kangaroo but didnâ€™t manage to include tangency options. Galapagos seems a good solution but is it possible to have it compite dynamically ?

@seghierkhaled The problem with CircleTanTan is that the point is merely a guide to help the component find a solution, but there is no guarantee the final circle is actually centered on that point, nor on the same line.

@magicteddy Thank you very much for your answer and your Grasshopper file. This is exactly what I was looking to do.

@inno, thank you for the Galapagos solution. Actually @magicteddy it seems to me that Galapagos does not allow to have a dynamic grasshopper (if Iâ€™m not mistaken).

@seghierkhaled , I had tried with this component but as @magicteddy says, the point is only an approximation. Only the tangents are kept.

If the tangent between two curve and the center of the circle must be a point on the line , this method may work fine but you need try it in different cases.
1- we create tween curve to find for example 1000 tangent circles,
2- we create a curve from circles centers and the intersection of the new curve with the line is the point we are looking for.

Perhaps: find tangent vectors at intersection of curves and line; find normals (in direction of centerpoint), where the 2 normals intersect, that is the centerpoint of the circle tangent at the two desired points.

geometrically this only happens when either, a) the two curves are parallel lines, or b) the line goes between the location of the shortest distance between the two curves