/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h
Find closest points between 2 segments.
static void FindNearestPointsOnLineSegments ( FVector Segment1Start, FVector Segment1End, FVector Segment2Start, FVector Segment2End, FVector & Segment1Point, FVector & Segment2Point )