Possible to draw an arc (semicircle) between two arbitrary lines, without “bulging” outside the lines.

circles

So you have two lines that need a connection that is a semicircle, or arc.

A    B

|    |
|    |
|    |
|    |

Easy. Focusing on just the bottom portion, you can do a rounded half-circle to join the two ends of the lines (end of line A joined to end of line B). Then there are perpendicular lines:

|
|
|
|    
          _______

This is also easy, it is just a quarter circle. Just make sure to extend the lines so they have the same distance from the meeting point. So the above would look more like:

|
|
|
|    
. _______

Here is how the arc might look. Notice the arc is tangent to each line.

Then there are diagnoal lines (arbitrary lines):

|   \
|    \
|     \
|      \

Or:

|      /
|     /
|    /
|   /

Or a million other diagonals.

The first part of my question is, if it is possible to draw any portion of a circle (to draw an arc) between any two lines, such that there is a smooth transition. By that I mean, the arc dosn't extend beyond the boundary of both lines, and is tangent to it where it intersects with each line.

For example, it seems like you could make these attach with an arc of some sort, but I am not sure of it. Just extend it a little bit, and maybe it would fit.

|      /
|     /
|    /
|   /
   /

Then:

|      /
|     /
|    /
|   /
 ‿ / (but tilted semicircle)

But that wouldn't be quite right because it would bulge outside the lines.

The second part of the question is how to tell how much to extend the lines in order to connect them with a semicircle. In the perpendicular case, you can say that both line ends need to be equidistant from their meeting point. But for the diagonal versions, I'm not sure what the general pattern is.

Best Answer

The key to the pattern? The angle bisector. Put the center of the circle on the bisector of the angle formed by the two lines, and it'll work out.

Figure 1

(I drew the whole circle, but it's easy enough to cut that down to an arc)

The case with two parallel lines is the only one we need to treat as special; in that case, there is no point of intersection, and instead we put the center on the mutually parallel line halfway between the two.