UKismetMathLibrary::GetPointDistanceToLine

Find the distance from a point to the closest point on an infinite line.