fix point to line distance function to be the intended point to segment distance
fix point to line distance function to be the intended point to segment distance

anttisalonen/libcommon,anttisalonen/libcommon