/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h
Find the distance from a point to the closest point on an infinite line.
The distance from the given point to the closest point on the line.
static float GetPointDistanceToLine ( FVector Point, FVector LineOrigin, FVector LineDirection )