FMath::SegmentDistToSegment

Find closest points between 2 segments.