Know the ABC three-point coordinates and get the closest distance from point A to BC