> Hmm. What literature have you already seen on the topic? Do
> offer any useful insights?
Thanks for these links.
Hmm. Actually these papers tell about general ideas, not such particular details. After carefully thought for a while, I think the current solution is quite reasonable now. The question raised when I test on two straight lines, but linear curves are specially dealt with ON_IntersectLineLine() and other logic now (overlaps). I've also added some comment to the code to tell about the possible limitations.