I'm working on an implementation of the MINDIST2POLY algorithm (see Pirzadeh, H. (1999) Computational geometry with the rotating calipers), to calculate the minimum distance between two non-intersecting convex polygons. A key step in the algorithm is as follows, given polygons $P$ and $Q$:
Say we have only hit vertex $q'\in Q$. Compute $dist(p_i, q')$ and compare it to our "minimum-so-far" ($O$(1) time). Now, consider a point $p^\bot$, such that line segment $[p, p^\bot]$ and edge $[q_j, q']$ are orthogonal. Compute the intersection of lines $L(p_i, p^\bot)$ and $L(q_j, q')$. If it exists and is equal to $q_{int}$, $q_{int}\ne q_j, q'$, then compute $dist(p_i, q_{int})$.
Is there a well-known algorithm or procedure for checking whether this intersection exists?