Method when given a point on the line and direction