• Find a point on the line.
  • The distance can be calculated from:

where is the direction vector.