distance to the crossing of 2 lines (Line Trace)

this will work as long as your two actors hit the same or almost the same place. or do you mean something like this ?

both do line trace and hit the wall but the intersection is somewhere else ?