/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h
If either segment may have a length of 0, use SegmentDistToSegmentSafe instance.
static void SegmentDistToSegment ( FVector A1, FVector B1, FVector A2, FVector B2, FVector & OutP1, FVector & OutP2 )