Find a point Q on the line. The distance can be calculated from: d=∣v∣∣PQ×v∣ where v is the direction vector.