/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h
Find the point on the line segment from LineStart to LineEnd which is closest to Point
static FVector ClosestPointOnLine ( const FVector & LineStart, const FVector & LineEnd, const FVector & Point )