If the direction vector of your line goes from point A to point B then the intersection of the lines is obviously at point B. You have to find a line that intersects the other one making an angle of 90º.

To do so, the vectors that define directions have to be perpendicular, that is, their inner product must be 0: