This question comes from TeX.SX https://tex.stackexchange.com/questions/183123/whats-the-minimum-distance-between-two-bezier-curves
(From typography; TeX) We are trying to find minimum distance between two glyphs. Glyphs usually consist of one or more cubic Bézier curves, the control points are stored in the font file (OTF, TTF, PFB, DFONT, ...).
We are solving https://tex.stackexchange.com/questions/180510/how-to-get-intersection-points-of-two-glyphs and if we could find minimum distance between two Bézier curves analytically, it would be computationally effective. It would be much better method than bisection method we quite often use in typography. We use iteration over a variable/dimension most of the time.
A mathematician told me that this approach could lead into a horrible system of equations. That's likely reason we use numerical methods instead.
One of my (poor) ideas is to convert Bézier curves to spiral curves (see application in FontForge), but it might lead us into an even worse situation (from mathematical point of view).
My next idea is to split up Bézier curves into smaller parts, but it's probably not improving a thing.
My question is probably duplicate to How can I tell when two cubic Bézier curves intersect? and it is related to Shortest distance between two shapes. In computer science this problem is related to the collision detection.
This is a hard problem. Here are two possible solutions:
Choose $n$ equally spaced points on each curve. These define $n^2$ distances; choose the smallest of these. For large $n$ this will likely be close to the correct answer.
Pick a point $a_1$ on Bezier curve A. Then choose the closest point $b_1$ on Bezier curve B. This involves finding the root to a fifth degree polynomial, which can only be done approximately in general. Then, find the closest point $a_2$ (to $b_1$) on Bezier curve A using the same method. Then, find the closest point $b_2$ (to $a_2$) on Bezier curve B using the same method. Hopefully this process will converge, and will yield the desired two points.