FMath::ClosestPointOnLine

Find the point on the line segment from LineStart to LineEnd which is closest to Point