Connecting a line that passes though 2 points

Have you checked this article?

This section may apply:

EDIT (December 3, 2021):

Also see this discussion: Extending a line.