# Connecting a line that passes though 2 points

**URL:** <https://discourse.processing.org/t/connecting-a-line-that-passes-though-2-points/33856>\
**Category:** Coding Questions\
**Created:** [December 1, 2021, 11:03am UTC](https://discourse.processing.org/t/connecting-a-line-that-passes-though-2-points/33856 "2021-12-01T11:03:20Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![javagar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/javagar/32/11434_2.png) [@javagar](https://discourse.processing.org/u/javagar)\
**Post date:** [December 2, 2021, 12:19pm UTC](https://discourse.processing.org/t/connecting-a-line-that-passes-though-2-points/33856/9 "2021-12-02T12:19:58Z")

</div>

Have you checked this article?

> **[Line–line intersection](https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection)**
>
> In Euclidean geometry, the intersection of a line and a line can be the empty set, a point, or a line. Distinguishing these cases and finding the intersection point have use, for example, in computer graphics, motion planning, and collision detection.
> In three-dimensional Euclidean geometry, if two lines are not in the same plane they are called skew lines and have no point of intersection. If they are in the same plane there are three possibilities: if they coincide (are not distinct lines) the...

This section may apply:

- [Given two line equations](https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection#Given_two_line_equations)

_EDIT (December 3, 2021):_

Also see this discussion: [Extending a line](https://discourse.processing.org/t/extending-a-line/9880).

---

_[View the full topic](https://discourse.processing.org/t/connecting-a-line-that-passes-though-2-points/33856)._
