FMath::PointDistToLine

Calculates the distance of a given Point in world space to a given line, defined by the vector couple (Origin, Direction).