/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h
Find the distance from a point to the closest point on a segment.
The distance from the given point to the closest point on the segment.
static float GetPointDistanceToSegment ( FVector Point, FVector SegmentStart, FVector SegmentEnd )